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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4b131b
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4dd704]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], ecx
test ebx, ebx
je 0x487e48
cmp dword [ebp + 0xc], 0
je 0x487e48
test eax, eax
je 0x487e48
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x487e48
test ecx, ecx
je 0x487e48
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x487e48
test byte [ebp + 0xc], 7
jne 0x487e48
test dl, 7
jne 0x487e48
test cl, 7
jne 0x487e48
lea eax, [ecx + 8]
cmp edx, eax
jne 0x487e48
mov esi, ecx
shr esi, 3
push eax
mov dword [esp + 0x60], esi
call fcn.0049badd
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
je 0x487e48
lea edi, [eax + 7]
mov eax, dword [ebp + 0xc]
shr edi, 3
add edi, edi
push eax
add edi, edi
push ebx
lea ecx, [esp + 0x3c]
add edi, edi
call fcn.00487b50
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx]
mov eax, ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0x1c]
push ecx
add eax, 8
push eax
push edi
mov dword [esp + 0x28c], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edx
call fcn.0049c200
add esp, 0xc
mov dword [esp + 0x10], 5
jmp 0x487c95
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
cdq
mov ecx, eax
add ecx, 1
adc edx, 0
xor eax, eax
push eax
push esi
push edx
push ecx
call fcn.0049c6b0
dec esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
test esi, esi
jl 0x487dfe
mov edi, edi
mov eax, 8
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
lea ecx, [ecx]
mov bl, byte [edx]
dec eax
dec ecx
inc edx
mov byte [ecx], bl
test eax, eax
jne 0x487cd0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor dword [esp + 0x28], eax
xor dword [esp + 0x24], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [edi + esi*8]
mov edx, dword [edi + esi*8 + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
test eax, eax
jle 0x487dcb
cmp byte [esp + 0x3c], 0
je 0x487d97
lea ebx, [esp + 0x24]
test ebx, 0xf
jne 0x487d44
lea ebx, [esp + 0x44]
test ebx, 0xf
jne 0x487d44
mov ecx, ebx
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.00487830
add esp, 0x10
jmp 0x487dcb
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x74], edx
mov edx, ecx
push edx
push eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x34]
push eax
mov dword [esp + 0x78], ebx
call fcn.00487830
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x80]
add esp, 0x10
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
jmp 0x487dcb
xor ebx, ebx
jmp 0x487da4
mov eax, dword [esp + 0x38]
lea edx, [esp + ebx + 0x44]
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + ebx + 0x28]
push ecx
push eax
push edx
call fcn.0047fb40
add ebx, 0x10
lea eax, [esp + ebx + 0x34]
lea ecx, [esp + 0x44]
add esp, 0x10
cmp eax, ecx
jb 0x487da0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [edi + esi*8], eax
or eax, 0xffffffff
add dword [esp + 0x14], eax
mov dword [edi + esi*8 + 4], ecx
mov dword [esp + 0x1c], ebx
adc dword [esp + 0x18], eax
sub esi, 1
mov dword [esp + 0x20], edx
jns 0x487cc0
sub dword [esp + 0x10], 1
jns 0x487c91
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x60]
push edx
push edi
push eax
call fcn.0049c200
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0049ba00
add esp, 0x10
cmp ebx, 0xa6a6a6a6
jne 0x487e33
cmp dword [esp + 0x20], ebx
je 0x487e6e
mov eax, dword [esp + 0x34]
test eax, eax
je 0x487e48
sub eax, dword [esp + 0x40]
push eax
call fcn.0049ba00
add esp, 4
xor al, al
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0049bf8d
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x34]
test eax, eax
je 0x487e83
sub eax, dword [esp + 0x40]
push eax
call fcn.0049ba00
add esp, 4
mov al, 1
jmp 0x487e4a