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

Disassembly:
push 0xffffffffffffffff
push 0x4651a4
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a770]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
push fcn.004020d0
push fcn.00402160
push 0xe
push 4
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x90], 1
call fcn.0044bab7
push 0x99
push 0x46d2d8
lea ecx, [esp + 0x44]
mov byte [esp + 0x84], 2
call fcn.00401fa0
push 0x99
push 0x46d378
lea ecx, [esp + 0x48]
call fcn.00401fa0
push 0x99
push 0x46d418
lea ecx, [esp + 0x4c]
call fcn.00401fa0
push 0x99
push 0x46d4b8
lea ecx, [esp + 0x50]
call fcn.00401fa0
push 0x99
push 0x46d558
lea ecx, [esp + 0x54]
call fcn.00401fa0
push 0x99
push 0x46d5f8
lea ecx, [esp + 0x58]
call fcn.00401fa0
push 0x99
push 0x46d698
lea ecx, [esp + 0x5c]
call fcn.00401fa0
push 0x99
push 0x46d738
lea ecx, [esp + 0x60]
call fcn.00401fa0
push 0x99
push 0x46d7d8
lea ecx, [esp + 0x64]
call fcn.00401fa0
push 0x99
push 0x46d878
lea ecx, [esp + 0x68]
call fcn.00401fa0
push 0x99
push 0x46d918
lea ecx, [esp + 0x6c]
call fcn.00401fa0
push 0x99
push 0x46d9b8
lea ecx, [esp + 0x70]
call fcn.00401fa0
push 0x99
push 0x46da58
lea ecx, [esp + 0x74]
call fcn.00401fa0
push 0x99
push 0x46daf8
lea ecx, [esp + 0x78]
call fcn.00401fa0
mov eax, dword [esp + 0x88]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x3c], esp
mov esi, esp
push eax
call fcn.00429de0
add esp, 4
lea ecx, [esp + 0x1c]
add eax, 0x10
push ecx
mov ecx, dword [esp + 0x94]
mov dword [esi], eax
call fcn.00405610
add esp, 8
lea ebx, [esp + 0x18]
mov byte [esp + 0x7c], 3
call fcn.00428aa0
mov edi, eax
call fcn.00428b20
lea edi, [esp + 0x3c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], edi
mov eax, dword [edi]
mov edx, 0x7c
sub eax, 0x10
mov word [esp + 0x8c], dx
cmp dword [eax + 0xc], 1
jle 0x405a2f
mov eax, dword [eax + 4]
push eax
mov ecx, edi
call fcn.00401e20
mov eax, dword [edi]
lea ecx, [esp + 0x8c]
push ecx
push eax
call fcn.0044bbfe
add esp, 8
mov esi, eax
push 0x46eae8
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], esi
call fcn.0042a2b0
mov byte [esp + 0x7c], 4
test esi, esi
je 0x405c54
jmp 0x405a69
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x405a71
xor eax, eax
jmp 0x405a7f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405a76
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401fa0
push 2
push 0
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x24]
call fcn.004286a0
mov eax, dword [eax]
test eax, eax
jne 0x405aa7
or ebp, 0xffffffff
jmp 0x405acf
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jge 0x405ab6
or ebp, 0xffffffff
jmp 0x405acf
push eax
push ecx
call fcn.0044d4ee
add esp, 8
test eax, eax
jne 0x405ac9
or ebp, 0xffffffff
jmp 0x405acf
sub eax, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405aef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 2
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
call fcn.004286a0
mov eax, dword [eax]
test eax, eax
jne 0x405b0c
or ebx, 0xffffffff
jmp 0x405b34
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jge 0x405b1b
or ebx, 0xffffffff
jmp 0x405b34
push eax
push ecx
call fcn.0044d4ee
add esp, 8
test eax, eax
jne 0x405b2e
or ebx, 0xffffffff
jmp 0x405b34
sub eax, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405b54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 4
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
call fcn.004286a0
mov eax, dword [eax]
test eax, eax
jne 0x405b71
or edi, 0xffffffff
jmp 0x405b99
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jge 0x405b80
or edi, 0xffffffff
jmp 0x405b99
push eax
push ecx
call fcn.0044d4ee
add esp, 8
test eax, eax
jne 0x405b93
or edi, 0xffffffff
jmp 0x405b99
sub eax, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405bb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 6
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
call fcn.004286a0
mov eax, dword [eax]
test eax, eax
jne 0x405bd6
or esi, 0xffffffff
jmp 0x405bfe
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jge 0x405be5
or esi, 0xffffffff
jmp 0x405bfe
push eax
push ecx
call fcn.0044d4ee
add esp, 8
test eax, eax
jne 0x405bf8
or esi, 0xffffffff
jmp 0x405bfe
sub eax, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405c1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jl 0x405c32
test ebx, ebx
jl 0x405c32
test edi, edi
jl 0x405c32
test esi, esi
jge 0x405d2b
lea ecx, [esp + 0x8c]
push ecx
push 0
call fcn.0044bbfe
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x405a65
mov edi, dword [esp + 0x24]
mov byte [esp + 0x7c], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405c79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
inc eax
add edi, 4
cmp eax, 0xe
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
jl 0x405a0c
mov esi, dword [esp + 0x84]
push 0x46eae8
mov ecx, esi
call fcn.0042a2b0
mov dword [esp + 0x28], 1
mov byte [esp + 0x7c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push fcn.004020d0
push 0xe
push 4
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x8c], 1
call fcn.0044bb7a
mov byte [esp + 0x7c], 0
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405d15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x84]
push ecx
mov ecx, esi
call fcn.0042a2b0
mov byte [esp + 0x7c], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x28], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405cad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405cad