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

Disassembly:
push 0xffffffffffffffff
push 0x4fe4e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.004e3ca5
xor ebx, ebx
push 0x50c140
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], ebx
call fcn.00401fd0
mov esi, dword [esp + 0x70]
lea eax, [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
push esi
mov byte [esp + 0x78], 1
call fcn.0047d7d0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x68], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x487a98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x50c140
lea ecx, [esp + 0x20]
call fcn.00401fd0
lea eax, [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
push esi
mov byte [esp + 0x78], 2
call fcn.0047d700
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x68], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x487ae2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x74]
push eax
push ebx
mov ecx, ebp
call fcn.004876a0
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x18], ebx
jbe 0x487df5
mov dword [esp + 0x1c], ebx
jmp 0x487b10
mov ebp, dword [esp + 0x74]
lea ecx, [ecx]
test ebx, ebx
jl 0x487e23
cmp ebx, eax
jge 0x487e23
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx + ebx*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x487b4d
cmp eax, dword [esi]
jne 0x487b4d
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x487b7f
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x487e1e
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
push 0
push ecx
mov byte [esp + 0x74], 3
call fcn.0047bff0
mov eax, dword [ebp]
add esp, 0xc
cmp ebx, eax
jae 0x487baf
mov ebp, dword [ebp + 4]
add ebp, dword [esp + 0x1c]
jmp 0x487bb1
xor ebp, ebp
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0047b390
mov eax, dword [esp + 0x20]
mov esi, dword [eax - 0xc]
push 0x5c
push eax
mov byte [esp + 0x7c], 4
call fcn.004d6dbb
add esp, 0x14
test eax, eax
jne 0x487be2
or eax, 0xffffffff
jmp 0x487be8
sub eax, dword [esp + 0x14]
sar eax, 1
sub esi, eax
dec esi
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0047a280
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x68], 5
je 0x487c59
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x487c4b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x487c4b
push eax
call fcn.0041c460
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x487c3e
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x18]
jmp 0x487c59
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041c8f0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x68], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487c7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0047c140
add esp, 0xc
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x68], 6
je 0x487cef
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x487ce1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x487ce1
push eax
call fcn.004013d0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x487cd4
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x18]
jmp 0x487cef
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401880
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x68], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487d12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x10]
cmp dword [edi - 4], 1
mov esi, dword [edi - 0xc]
jle 0x487d2f
mov eax, esi
push eax
lea ecx, [esp + 0x14]
call fcn.00401430
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 8]
inc esi
test eax, eax
je 0x487d40
push eax
call fcn.004e50f9
add esp, 4
push esi
mov dword [ebp + 4], esi
call fcn.004e50fe
add esp, 4
test edi, edi
mov dword [ebp + 8], eax
je 0x487d67
mov ecx, esi
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x3c]
and al, 0x10
neg al
mov byte [esp + 0x68], 3
sbb eax, eax
add eax, 2
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x5c]
mov dword [ebp + 0x10], eax
mov ecx, dword [esp + 0x58]
mov dword [ebp + 0xc], ecx
mov edx, dword [esp + 0x50]
mov dword [ebp + 0x18], edx
mov eax, dword [esp + 0x54]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487db6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x68], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487dd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
inc ebx
add edx, 0x20
cmp ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
jb 0x487b09
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], 0xffffffff
call fcn.004e3cf7
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret
jmp fcn.0041bff0
jmp fcn.004e2e19