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

Disassembly:
push 0xffffffffffffffff
push 0x45e586
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c003c]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov esi, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [ecx + 0x10], esi
push eax
add ecx, 0x38
call dword [0x46a674]
add esi, 4
push esi
lea ecx, [esp + 0x2c]
call dword [0x46be50]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0xa0], edi
call dword [0x46be54]
push eax
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0xa4], 1
call fcn.0040f430
add esp, 8
mov eax, dword [esp + 0x24]
mov byte [esp + 0x9c], 3
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40473a
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0xc]
lea ecx, [eax + edx*4 + 0x14]
mov edx, dword [eax + 8]
mov esi, eax
push ecx
lea eax, [eax + edx*4 + 0x14]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402b90
push esi
call dword [0x46a6d4]
add esp, 4
mov eax, dword [esp + 0x78]
mov ecx, eax
inc eax
mov dword [esp + 0x78], eax
test ecx, ecx
jne 0x40475b
mov edx, dword [esp + 0x7c]
mov byte [esp + 0x17], 1
cmp edx, dword [esp + 0x80]
jne 0x404760
mov byte [esp + 0x17], 0
test byte [esp + 0x18], 2
je 0x4047ba
and dword [esp + 0x18], 0xfffffffd
mov eax, dword [esp + 0x50]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4047ba
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
lea esi, [eax + edx*4 + 0x14]
lea edi, [eax + ecx*4 + 0x14]
mov ebx, eax
cmp edi, esi
je 0x4047b0
mov edx, dword [esi - 4]
sub esi, 4
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4047ac
mov ecx, dword [esi]
push ecx
call dword [0x46a75c]
add esp, 4
cmp esi, edi
jne 0x404791
push ebx
call dword [0x46a6d4]
add esp, 4
cmp byte [esp + 0x17], 0
je 0x404c5c
mov edx, dword [esp + 0x7c]
push edx
lea ecx, [esp + 0x20]
call dword [0x46a714]
test byte [esp + 0x18], 4
mov dword [esp + 0x9c], 6
je 0x404821
and dword [esp + 0x18], 0xfffffffb
mov eax, dword [esp + 0x2c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x404821
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0xc]
lea ecx, [eax + edx*4 + 0x14]
mov edx, dword [eax + 8]
mov esi, eax
push ecx
lea eax, [eax + edx*4 + 0x14]
push eax
lea ecx, [esp + 0x34]
call fcn.00402b90
push esi
call dword [0x46a6d4]
add esp, 4
test byte [esp + 0x18], 0x10
mov ebp, dword [esp + 0x78]
je 0x40487f
and dword [esp + 0x18], 0xffffffef
mov ecx, dword [esp + 0x54]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x40487f
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x14]
lea edi, [eax + edx*4 + 0x14]
mov ebx, eax
cmp edi, esi
je 0x404875
mov eax, dword [esi - 4]
sub esi, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x404871
mov edx, dword [esi]
push edx
call dword [0x46a75c]
add esp, 4
cmp esi, edi
jne 0x404856
push ebx
call dword [0x46a6d4]
add esp, 4
test ebp, ebp
je 0x404bd6
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x30]
call dword [0x46be58]
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 7
call dword [0x46a678]
mov edx, dword [esp + 0x30]
mov ebp, dword [0x46a75c]
mov byte [esp + 0x9c], 9
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4048d6
mov ecx, dword [esp + 0x30]
push ecx
call ebp
add esp, 4
mov edi, dword [0x46a67c]
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x20]
call edi
mov esi, dword [0x46a680]
lea ecx, [esp + 0x58]
push ecx
mov ecx, eax
mov byte [esp + 0xa0], 0xa
mov dword [esp + 0x5c], 0x46c854
call esi
mov edx, dword [esp + 0x34]
mov bl, al
mov byte [esp + 0x9c], 9
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x404927
mov ecx, dword [esp + 0x34]
push ecx
call ebp
add esp, 4
test bl, bl
je 0x40495b
push 1
lea ecx, [esp + 0x88]
call dword [0x46a684]
test al, al
je 0x404a4b
lea ecx, [esp + 0x84]
call dword [0x46a688]
mov edx, dword [esp + 0x20]
mov byte [edx + 0x3c], al
jmp 0x404b5f
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
call edi
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
mov byte [esp + 0xa0], 0xb
mov dword [esp + 0x60], 0x46c840
call esi
mov edx, dword [esp + 0x38]
mov bl, al
mov byte [esp + 0x9c], 9
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4049a0
mov ecx, dword [esp + 0x38]
push ecx
call ebp
add esp, 4
test bl, bl
je 0x4049d6
push 2
lea ecx, [esp + 0x88]
call dword [0x46a684]
test al, al
je 0x404a4b
push 0
lea ecx, [esp + 0x88]
call dword [0x46a68c]
mov edx, dword [esp + 0x20]
mov dword [edx + 0x40], eax
jmp 0x404b5f
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
call edi
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
mov byte [esp + 0xa0], 0xc
mov dword [esp + 0x64], 0x46c82c
call esi
mov edx, dword [esp + 0x3c]
mov bl, al
mov byte [esp + 0x9c], 9
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x404a1b
mov ecx, dword [esp + 0x3c]
push ecx
call ebp
add esp, 4
test bl, bl
je 0x404a4b
push 1
lea ecx, [esp + 0x88]
call dword [0x46a684]
test al, al
je 0x404a4b
lea ecx, [esp + 0x84]
call dword [0x46a688]
mov edx, dword [esp + 0x20]
mov byte [edx + 0x44], al
jmp 0x404b5f
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x88]
call dword [0x46a690]
mov esi, eax
push 0
lea ecx, [esp + 0x4c]
push 0x46c7e8
push ecx
mov byte [esp + 0xa8], 0xd
call fcn.00402730
add esp, 0xc
mov ecx, dword [esp + 0xa8]
push esi
lea edx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x50]
push edx
mov ecx, eax
mov byte [esp + 0xac], 0xe
call dword [0x46a694]
mov esi, eax
push ecx
mov byte [esp + 0x68], 0xa
mov eax, dword [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x74], esp
push eax
mov byte [esp + 0xa4], 0xf
call dword [0x46a71c]
lea ecx, [esp + 0x44]
push esi
push ecx
call fcn.004026b0
add esp, 0xc
mov ecx, dword [esp + 0x20]
push eax
add ecx, 0x50
mov byte [esp + 0xa0], 0x10
call dword [0x46a718]
mov edx, dword [esp + 0x40]
mov byte [esp + 0x9c], 0xf
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x404b02
mov ecx, dword [esp + 0x40]
push ecx
call ebp
add esp, 4
mov edx, dword [esp + 0x44]
mov byte [esp + 0x9c], 0xe
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x404b21
mov ecx, dword [esp + 0x44]
push ecx
call ebp
add esp, 4
mov edx, dword [esp + 0x48]
mov byte [esp + 0x9c], 0xd
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x404b40
mov ecx, dword [esp + 0x48]
push ecx
call ebp
add esp, 4
mov edx, dword [esp + 0x4c]
mov byte [esp + 0x9c], 9
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x404b5f
mov ecx, dword [esp + 0x4c]
push ecx
call ebp
add esp, 4
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 6
call dword [0x46a698]
dec dword [esp + 0x78]
test byte [esp + 0x18], 8
je 0x404821
and dword [esp + 0x18], 0xfffffff7
mov edx, dword [esp + 0x68]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x404821
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x14]
lea edi, [eax + edx*4 + 0x14]
mov ebx, eax
cmp edi, esi
je 0x404bd0
mov eax, dword [esi - 4]
sub esi, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x404bcc
mov edx, dword [esi]
push edx
call dword [0x46a75c]
add esp, 4
cmp esi, edi
jne 0x404bb1
push ebx
jmp 0x404818
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x9c], 3
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x404bf9
mov edx, dword [esp + 0x1c]
push edx
call dword [0x46a75c]
add esp, 4
add dword [esp + 0x7c], 4
test byte [esp + 0x18], 1
je 0x40473a
and dword [esp + 0x18], 0xfffffffe
mov eax, dword [esp + 0x6c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40473a
mov eax, dword [esp + 0x6c]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
lea esi, [eax + edx*4 + 0x14]
lea edi, [eax + ecx*4 + 0x14]
mov ebx, eax
cmp edi, esi
je 0x404c56
mov edx, dword [esi - 4]
sub esi, 4
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x404c52
mov ecx, dword [esi]
push ecx
call dword [0x46a75c]
add esp, 4
cmp esi, edi
jne 0x404c37
push ebx
jmp 0x404731
mov edx, dword [esp + 0x74]
mov byte [esp + 0x9c], 0
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x404cb9
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x14]
lea edi, [eax + edx*4 + 0x14]
mov ebx, eax
cmp edi, esi
je 0x404caf
lea esp, [esp]
mov eax, dword [esi - 4]
sub esi, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x404cab
mov edx, dword [esi]
push edx
call dword [0x46a75c]
add esp, 4
cmp esi, edi
jne 0x404c90
push ebx
call dword [0x46a6d4]
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x9c], 0xffffffff
call dword [0x46be5c]
mov al, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8