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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8903039c
movzx eax, byte [ebp + 0x10]
and dword [esp + 0x2c], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [eax], esp
push esi
adc cl, al
loopne 0x487fb8
mov dword [esp + 0x34], ebx
and al, 0x34
mov ecx, dword [edi + 4]
sub ecx, eax
mov esi, dword [ecx + 4]
mov ecx, esi
call fcn.00407549
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffffd
mov dword [esp + 0x74], eax
inc dword [eax]
add ecx, dword [edi + 8]
mov eax, ecx
mov dword [esp + 0x7e3b84], ecx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov dword [esp + 0x14], edx
lea eax, [edx + edx]
cmp eax, ecx
je 0x488053
mov esi, dword [ebp + 0xc]
mov ecx, esi
call 0xe940cfd9
and dword [esi], 0
mov dword [esi + 0xc], 0x7e3b01
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cmp byte [eax + ebx + 0xd], 0
mov ecx, dword [eax + ebx + 8]
je 0x488035
mov ecx, dword [ecx + 0x38]
mov dword [ecx + 0x14], 0xff0004
cmp byte [eax + ebx + 0xd], 0
mov ecx, dword [eax + ebx + 8]
je 0x48804a
mov ecx, dword [ecx + 0x38]
mov byte [ecx + 0x18], 0
jmp 0x488542
lea eax, [esp + 0x78]
mov dword [esp + 0x7e3b84], edx
push eax
xor edi, edi
mov dword [esp + 0x40], 0xfe49c940
and dword [esp + 0x48], edi
lea eax, [esp + 0x6c]
and dword [esp + 0x4c], edi
or esi, 0xffffffe8
push eax
mov dword [esp + 0x48], edi
call 0x894b8d0c
test al, al
jne 0x4880ca
mov esi, dword [ebp + 0xc]
mov ecx, esi
call 0xe940cfd9
and dword [esi], edi
mov dword [esi + 0xc], 0x7e3b01
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cmp byte [eax + ebx + 0xd], 0
mov ecx, dword [eax + ebx + 8]
je 0x4880ac
mov ecx, dword [ecx + 0x38]
mov dword [ecx + 0x14], 0xff0002
cmp byte [eax + ebx + 0xd], 0
mov ecx, dword [eax + ebx + 8]
je 0x4880c1
mov ecx, dword [ecx + 0x38]
mov byte [ecx + 0x18], 0
jmp 0x48853b
and dword [esp + 0xff0080], edi
and dword [esp + 0x20], edi
push 3
pop eax
sub eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x7e3b84], edi
jle 0xc682be
mov edi, dword [esp + 0x14]
shl eax, 2
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x30], edi
inc esi
lea ecx, [esp + 0x3c]
push eax
mov dword [esp + 0x1c], esi
call fcn.004641b6
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov esi, dword [esi + eax]
mov ecx, esi
call fcn.00407549
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x50], esi
mov eax, dword [ecx]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x7e3b00a8]
mov dword [esp + 0x64], eax
inc dword [eax]
imul eax, esi, 0x18
mov dword [esp + 0x18], eax
add eax, ecx
push eax
lea esp, [eax]
push esi
pop esp
push eax
call 0xc68556
test al, al
je 0x7e83843b
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x7e3b00b0]
add edx, eax
mov dword [esp + 0x54], edx
cmp dword [edx], 0x10
jne 0xc6bd88
cmp dword [esp + eax + 0x7e3bb4], 0
jne 0x7e838288
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx + eax + 4]
cmp dword [ecx + 0xc], 0xc
jne 0x7e8383f9
call fcn.00471f3f
mov ecx, dword [esp + 0x18]
dec eax
shr eax, 2
add edi, eax
mov dword [esp + 0x28], eax
inc eax
mov dword [esp + 0x14], edi
imul eax, dword [esp + ecx + 0x7e3b00b8]
add dword [esp + 0xff0080], eax
mov esp, dword [eax]
and al, 0x30
cmp eax, esi
jle 0x488226
imul eax, eax, 0x18
lea edx, [esp + 0x7e3b00a8]
add eax, edx
mov dword [esp + 0x4c], eax
mov ebx, eax
imul eax, edi, 0x18
add edx, eax
mov esp, dword [eax]
and al, 0x30
sub eax, esi
push 6
mov esi, ebx
mov edi, edx
pop ecx
sub ebx, 0x18
sub edx, 0x18
rep movsd dword es:[edi], dword [esi]
sub eax, 1
jne 0x488202
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov esp, dword [eax]
or byte [ebx + eax*4], al
js 0x488241
or al, 0x75
add al, 0x8b
add bl, ch
add dh, byte [ebx]
ror byte [ebx - 0x74d7dbb4], 0x40
or byte [ecx + 3], al
sub byte [ebx + 0x3410840], cl
into
mov dword [esp + 0x24], eax
cmp esi, ecx
jge 0x488285
mov edi, dword [esp + 0x18]
sub ecx, esi
mov ebx, eax
mov eax, dword [ebx]
inc esi
and dword [edx + 4], 0
lea ebx, [ebx + 4]
mov dword [edx - 8], eax
mov dword [edx], 0x7e3b0010
lea edx, [edx + 0x18]
mov eax, dword [esp + edi + 0x7e3b00b8]
mov dword [edx - 0x10], eax
sub ecx, 1
jne 0x488258
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
dec esi
jmp 0x488296
add dword [esp + 0x1c], 8
lea ecx, [esp + 0x58]
call 0xe94098c8
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x7e3b84]
jl 0x4880fc
mov edi, dword [esp + 0x40]
cmp byte [ebp + 0x10], 0
je 0x7e838488
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
call fcn.00471ef5
mov dword [esp + 0x78], eax
sub esp, 0x10
lea eax, [esp + 0x4c]
mov ecx, esp
push eax
call fcn.00487ebf
push 4
pop eax
sub eax, dword [esp + 0x20]
push eax
sti
jne 0x4882fc
lea eax, [esp + 0x7e3b90]
push eax
call 0xc690cf
mov esi, dword [esp + 0x7e3b84]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x7e3b84], eax
lea eax, [esp + 0x78]
push eax
call 0x1141fca9
test eax, eax
jne 0x48833b
push 0xffffffffffffffff
push 0x67
mov ecx, ebx
call fcn.004735d5
push 0
call dword [0xfe49c360]
push eax
call dword [0x49c1ec]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x7e3b84], esi
call fcn.00406424
mov ecx, dword [esp + 0x7e3b84]
xor ebx, ebx
inc ecx
mov esi, eax
push ecx
inc ebx
mov dword [esp + 0x2c], esi
push ebx
push esi
call fcn.00406a89
add esp, 0xc
cmp dword [esp + 0x7e3b88], ebx
jne 0x48838b
push 0
push ebx
push 2
push esi
call fcn.00410529
add esp, 0x10
push eax
lea eax, [esp + 0x7e3b94]
push eax
call fcn.00488bb4
xor esi, esi
cmp dword [esp + 0x7e3b84], esi
jle 0x7e8384fe
mov eax, dword [esp + 0x2c]
shl eax, 2
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
push eax
push ebx
push 2
push dword [esp + 0x34]
mov dword [esp + 0x3c], eax
call fcn.00410529
mov ecx, dword [edi + esi*4]
add esp, 0x10
mov dword [esp + 0x20], eax
imul ecx, dword [ecx], 0x18
cmp dword [esp + ecx + 0x7e3b00b0], 0x10
jne 0x7e8384d8
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
mov ecx, dword [edx + ecx + 4]
cmp dword [ecx + 0xc], 0xc
jne 0x7e8384b9
push ecx
mov ecx, eax
call fcn.0040ad24
jmp 0xc6bfe8
push edi
call fcn.0041fe4d
pop ecx
lea ecx, [esp + 0x68]
call fcn.004098c8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc