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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4f898d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4ec9b4]
call fcn.004046d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x80]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x114]
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x118]
sub esi, ebx
jl 0x4f896f
inc esi
mov eax, dword [ebp - 0x28]
push dword [eax + 0x50]
mov eax, ebx
pop edx
mov ecx, edx
cdq
idiv ecx
test edx, edx
jne 0x4f8967
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004f8a4c
test al, al
jne 0x4f8967
lea ecx, [ebp - 4]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004f8eb4
cmp dword [ebp - 4], 0
je 0x4f8967
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x80]
mov edx, ebx
call fcn.004f5698
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x10], 0
je 0x4f8967
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
call fcn.004de024
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x2ec], 0
je 0x4f87b0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
jne 0x4f87b0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x2f0]
cmp byte [eax + 0x3c], 0
je 0x4f87b0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x2f0]
cmp dword [eax + 0x38], 0x64
je 0x4f87b0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edi, dword [eax + 8]
push 0
push 1
mov eax, edi
call fcn.00487248
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x2f0]
fild dword [eax + 0x38]
fld xword [0x4f899c]
fmulp st(1)
fmulp st(1)
call fcn.004036e4
push edx
push eax
call fcn.00481348
mov edx, eax
mov eax, edi
call fcn.00487264
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x80]
cmp byte [eax + 0x29], 0
jne 0x4f87ec
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
call fcn.004faf00
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, 0x4f89b0
mov ecx, dword [eax]
call dword [ecx + 0x7c]
imul eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4f880c
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, dword [ebp - 4]
call fcn.004dc0a4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, 0x4f89b0
mov ecx, dword [eax]
call dword [ecx + 0x78]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
mov edi, dword [eax + 0x64]
test edi, edi
je 0x4f8850
mov eax, edi
call fcn.004febd0
test al, al
je 0x4f8850
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, 0x4f89b0
mov ecx, dword [eax]
call dword [ecx + 0x7c]
sub eax, 4
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 0xc]
mov eax, edi
call fcn.0048760c
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edi, dword [eax]
call dword [edi + 0x38]
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 0xc]
cmp byte [edi + 0x28], 0
je 0x4f888c
mov eax, edi
call fcn.0048774c
add eax, eax
add dword [ebp - 0xc], eax
add dword [ebp - 0x10], eax
jmp 0x4f8892
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x18], edx
mov edx, ebx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xd], eax
mov edx, ebx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x104]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x11], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0xd]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 0x11]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xd]
mov edx, dword [ebp - 0xc]
sar edx, 1
jns 0x4f88ec
adc edx, 0
sub eax, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x11]
sub eax, dword [ebp - 0x10]
inc eax
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x20], eax
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x64]
test edx, edx
je 0x4f8953
lea edi, [edx + 0x31]
add eax, 2
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
add eax, 2
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, 0x4f89b0
mov ecx, dword [eax]
call dword [ecx + 0x7c]
add eax, dword [edi + 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, 0x4f89b0
mov ecx, dword [eax]
call dword [ecx + 0x7c]
add eax, dword [edi]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x84]
inc ebx
dec esi
jne 0x4f86b6
mov eax, dword [ebp - 0x14]
call fcn.00404700
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8994
lea eax, [ebp - 4]
call fcn.00405704
ret