Function at 0x406ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45e93b
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c003c]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x58], ebp
push 0xffffffffffffffff
push 0x46c948
call dword [0x46a64c]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
add eax, 0x2c
push eax
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0xf0], 0
call fcn.004044f0
add esp, 0x10
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov byte [esp + 0xe0], 1
lea esp, [esp]
mov edx, eax
inc eax
mov dword [esp + 0x88], eax
test edx, edx
jne 0x407125
cmp ecx, dword [esp + 0x90]
je 0x407125
mov ecx, dword [ecx]
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x40710f
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
call edx
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x4070f7
push 0
lea eax, [esp + 0x24]
lea esi, [edi + 8]
push eax
mov ecx, esi
call dword [0x46a650]
test al, al
jne 0x406c91
push 0
lea ecx, [esp + 0x6c]
push 0x46c8f8
push ecx
call fcn.00402730
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push esi
lea ecx, [esp + 0x68]
push ecx
mov ecx, eax
mov byte [esp + 0xec], 2
call dword [0x46a654]
mov esi, eax
push ecx
mov byte [esp + 0x98], 0xa
mov edx, dword [esp + 0x98]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0xe8], 3
call dword [0x46a71c]
lea eax, [esp + 0x58]
push esi
push eax
call fcn.004026b0
add esp, 0xc
push eax
lea ecx, [ebp + 0x50]
mov byte [esp + 0xe4], 4
call dword [0x46a718]
mov ecx, dword [esp + 0x54]
mov esi, dword [0x46a75c]
mov byte [esp + 0xe0], 3
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x406c37
mov eax, dword [esp + 0x54]
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x60]
mov byte [esp + 0xe0], 2
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x406c56
mov eax, dword [esp + 0x60]
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x68]
mov byte [esp + 0xe0], 1
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4070f7
mov eax, dword [esp + 0x68]
push eax
call esi
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x20]
add esp, 4
dec eax
mov dword [esp + 0x88], eax
jmp 0x406b65
push esi
lea ecx, [esp + 0x18]
call dword [0x46a714]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
push eax
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe8], 5
call dword [0x46a658]
mov esi, dword [0x46a65c]
push 0
lea edx, [esp + 0xa4]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa8], 0x46c8f4
call esi
test al, al
je 0x406d29
lea eax, [esp + 0x24]
push eax
lea ecx, [ebp + 0x20]
call fcn.0040a0b0
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xe0], 1
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4070f7
mov eax, dword [esp + 0x14]
push eax
call dword [0x46a75c]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x20]
add esp, 4
dec eax
mov dword [esp + 0x88], eax
jmp 0x406b65
push 0
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa4], 0x46c8ec
call esi
test al, al
je 0x406d94
lea edx, [esp + 0x24]
push edx
lea ecx, [ebp + 0x24]
call fcn.0040a0b0
mov eax, dword [esp + 0x14]
mov byte [esp + 0xe0], 1
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4070f7
mov edx, dword [esp + 0x14]
push edx
call dword [0x46a75c]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x20]
add esp, 4
dec eax
mov dword [esp + 0x88], eax
jmp 0x406b65
push 0
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 0x46c8e4
call esi
test al, al
je 0x406df5
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x1c], edi
mov byte [esp + 0xe0], 1
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4070f7
mov eax, dword [esp + 0x14]
push eax
call dword [0x46a75c]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x20]
add esp, 4
dec eax
mov dword [esp + 0x88], eax
jmp 0x406b65
push 1
push 0
push ecx
mov byte [esp + 0xa4], 0x5f
mov edx, dword [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call dword [0x46a71c]
lea ecx, [esp + 0x20]
call dword [0x46a66c]
mov esi, eax
inc esi
push esi
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call dword [0x46a660]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
sub eax, esi
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe8], 6
call dword [0x46a670]
lea eax, [esp + 0x2c]
push eax
lea ecx, [ebp + 0x48]
mov byte [esp + 0xe4], 7
call fcn.00403d30
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
call dword [0x46be6c]
add ebp, 0x34
lea edx, [esp + 0x70]
push ebp
push edx
mov dword [esp + 0x44], eax
xor bl, bl
call fcn.004044f0
add esp, 8
mov eax, dword [esp + 0x78]
mov byte [esp + 0xe0], 8
lea ebx, [ebx]
mov ecx, dword [esp + 0x74]
mov edx, ecx
inc ecx
mov dword [esp + 0x74], ecx
test edx, edx
jne 0x406ff2
cmp eax, dword [esp + 0x7c]
je 0x406ff2
mov esi, dword [eax]
nop
cmp dword [esp + 0x74], 0
je 0x406fe2
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call fcn.004305f0
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + ecx*4 + 0x14]
add eax, 8
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 9
call dword [0x46a714]
mov edx, dword [esp + 0x80]
mov byte [esp + 0xe0], 0xb
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x406f22
mov ecx, dword [esp + 0x80]
push ecx
call dword [0x46a6d4]
add esp, 4
mov edx, dword [esp + 0x20]
mov edi, dword [edx + 8]
push 1
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
call dword [0x46a664]
cmp eax, edi
je 0x406f6c
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xe0], 8
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x406f63
mov eax, dword [esp + 0x28]
push eax
call dword [0x46a75c]
add esp, 4
dec dword [esp + 0x74]
jmp 0x406ec0
mov eax, dword [esi]
mov ecx, dword [eax + 0x34]
add eax, 0x34
cmp ecx, 1
je 0x406f80
mov ecx, esi
call fcn.0044e4d0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xac]
push eax
mov ecx, esi
call fcn.00430590
mov ecx, dword [esi]
cmp eax, ecx
jne 0x406fb6
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0xb0]
push edx
push ecx
mov ecx, esi
call fcn.00403b20
jmp 0x406fbd
mov ecx, dword [esp + 0x3c]
mov dword [eax - 4], ecx
mov edx, dword [esp + 0x28]
mov bl, 1
mov byte [esp + 0xe0], 8
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x406fe2
mov ecx, dword [esp + 0x28]
push ecx
call dword [0x46a75c]
add esp, 4
mov eax, dword [esp + 0x78]
add eax, 4
mov dword [esp + 0x78], eax
jmp 0x406ea0
mov edx, dword [esp + 0x70]
mov byte [esp + 0xe0], 7
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x407015
mov ecx, dword [esp + 0x70]
push ecx
call dword [0x46a6d4]
add esp, 4
test bl, bl
jne 0x40708a
push 4
call fcn.0045dcdc
add esp, 4
test eax, eax
je 0x40703f
mov edx, dword [0x46a700]
mov ecx, edx
mov dword [eax], edx
add ecx, 0x34
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x407041
xor eax, eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.00414810
mov eax, dword [ebp]
mov ecx, dword [eax]
cmp ecx, 1
je 0x407069
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push eax
mov ecx, ebp
call fcn.00403a40
mov eax, dword [ebp]
mov ecx, dword [eax + 0xc]
lea eax, [eax + ecx*4 + 0x14]
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [eax - 4]
lea edx, [esp + 0x38]
push edx
call fcn.00430880
mov eax, dword [esp + 0x2c]
mov byte [esp + 0xe0], 6
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4070ad
mov edx, dword [esp + 0x2c]
push edx
call dword [0x46a75c]
add esp, 4
mov eax, dword [esp + 0x38]
mov byte [esp + 0xe0], 5
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4070d0
mov edx, dword [esp + 0x38]
push edx
call dword [0x46a75c]
add esp, 4
mov eax, dword [esp + 0x14]
mov byte [esp + 0xe0], 1
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4070f3
mov edx, dword [esp + 0x14]
push edx
call dword [0x46a75c]
add esp, 4
mov ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x88], eax
jmp 0x406b65
mov ecx, dword [esp + 0x8c]
add ecx, 4
mov dword [esp + 0x8c], ecx
jmp 0x406b40
mov eax, dword [esp + 0x84]
mov byte [esp + 0xe0], 0
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40714e
mov edx, dword [esp + 0x84]
push edx
call dword [0x46a6d4]
add esp, 4
mov eax, dword [0x46a760]
mov dword [esp + 0x18], eax
mov ecx, 1
lock xadd dword [eax], ecx
cmp dword [ebp + 0x1c], 0
mov byte [esp + 0xe0], 0xc
jne 0x40720f
push 0
lea edx, [esp + 0x68]
push 0x46c8c8
push edx
call fcn.00402730
mov esi, eax
add esp, 8
mov byte [esp + 0x20], 0xa
mov eax, dword [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
mov bl, 0xd
push eax
mov byte [esp + 0xe8], bl
call dword [0x46a71c]
lea ecx, [esp + 0x50]
push esi
push ecx
call fcn.004026b0
add esp, 0xc
mov edi, dword [0x46a718]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0xe
call edi
mov edx, dword [esp + 0x4c]
mov esi, dword [0x46a75c]
mov byte [esp + 0xe0], bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4071ee
mov ecx, dword [esp + 0x4c]
push ecx
call esi
add esp, 4
mov edx, dword [esp + 0x64]
mov byte [esp + 0xe0], 0xc
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40721b
mov ecx, dword [esp + 0x64]
push ecx
call esi
add esp, 4
jmp 0x40721b
mov edi, dword [0x46a718]
mov esi, dword [0x46a75c]
cmp dword [ebp + 0x2c], 0xffffffff
jne 0x4072c2
push 0
lea edx, [esp + 0x70]
push 0x46c8b0
push edx
call fcn.00402730
mov esi, eax
add esp, 8
mov byte [esp + 0x20], 0xa
mov eax, dword [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
mov bl, 0xf
push eax
mov byte [esp + 0xe8], bl
call dword [0x46a71c]
lea ecx, [esp + 0x44]
push esi
push ecx
call fcn.004026b0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0x10
call edi
mov edx, dword [esp + 0x40]
mov byte [esp + 0xe0], bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x407299
mov ecx, dword [esp + 0x40]
push ecx
call dword [0x46a75c]
add esp, 4
mov edx, dword [esp + 0x6c]
mov byte [esp + 0xe0], 0xc
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4072bc
mov ecx, dword [esp + 0x6c]
push ecx
call dword [0x46a75c]
add esp, 4
mov esi, dword [0x46a75c]
mov edx, dword [ebp + 0x20]
cmp dword [edx + 8], 0
jne 0x40736c
push 0
lea eax, [esp + 0x48]
push 0x46c898
push eax
call fcn.00402730
mov esi, eax
add esp, 8
mov byte [esp + 0x20], 0xa
mov edx, dword [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
mov bl, 0x11
push edx
mov byte [esp + 0xe8], bl
call dword [0x46a71c]
lea eax, [esp + 0x60]
push esi
push eax
call fcn.004026b0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0x12
call edi
mov ecx, dword [esp + 0x5c]
mov byte [esp + 0xe0], bl
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x407343
mov eax, dword [esp + 0x5c]
push eax
call dword [0x46a75c]
add esp, 4
mov ecx, dword [esp + 0x44]
mov byte [esp + 0xe0], 0xc
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x407366
mov eax, dword [esp + 0x44]
push eax
call dword [0x46a75c]
add esp, 4
mov esi, dword [0x46a75c]
mov eax, dword [esp + 0x18]
cmp dword [eax + 8], 0
je 0x40745a
push ecx
mov byte [esp + 0x20], 0xa
mov edx, dword [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call dword [0x46a71c]
lea eax, [ebp + 0x38]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.004026b0
lea edx, [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x5c]
mov bl, 0x13
push eax
mov byte [esp + 0xf8], bl
call fcn.00402630
add esp, 0x18
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0x14
call dword [0x46a674]
mov ecx, dword [esp + 0x48]
mov byte [esp + 0xe0], bl
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4073ec
mov eax, dword [esp + 0x48]
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x50]
mov byte [esp + 0xe0], 0xc
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x40740b
mov eax, dword [esp + 0x50]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [ebp + 0x4c]
call edi
mov edx, dword [esp + 0x18]
mov byte [esp + 0xe0], 0
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x407434
mov ecx, dword [esp + 0x18]
push ecx
call esi
add esp, 4
mov edx, dword [esp + 0x20]
mov dword [esp + 0xe0], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x407456
mov ecx, dword [esp + 0x20]
push ecx
call esi
add esp, 4
xor al, al
jmp 0x407499
mov byte [esp + 0xe0], 0
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x407475
mov eax, dword [esp + 0x18]
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xe0], 0xffffffff
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x407497
mov eax, dword [esp + 0x20]
push eax
call esi
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret