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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51dca4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
mov al, byte [ebp + 8]
push ebx
push esi
push edi
test al, al
mov dword [esp + 0x4c], ecx
jne 0x4f2ad8
fld qword [ebp + 0x10]
fcomp qword [0x520dc0]
mov ebx, dword [ebp + 0x1c]
fnstsw ax
test ah, 0x40
jne 0x4f2a6b
lea ecx, [esp + 0xb0]
call fcn.0047ded0
mov eax, dword [ebp + 0xc]
sub esp, 8
sub esp, 8
xor edi, edi
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 4]
fld qword [esp + 0x2c]
fadd qword [eax + 0x20]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x118], edi
fstp qword [esp + 8]
fld qword [esp + 0x24]
fadd qword [eax + 0x18]
mov eax, dword [esp + 0x30]
fstp qword [esp]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0xd0]
call fcn.00480180
lea ecx, [esp + 0x30]
call fcn.00478fc0
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x10c], 1
call fcn.004790d0
mov esi, dword [ebx + 8]
dec esi
cmp esi, edi
mov dword [esp + 0xc], esi
jl 0x4f25da
lea eax, [esi + esi*2]
shl eax, 2
inc esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jmp 0x4f2554
mov eax, dword [esp + 0x10]
mov esi, dword [ebx + 4]
mov ecx, dword [esp + 0x34]
add esi, eax
sub esp, 8
add ecx, edi
sub esp, 8
fld dword [esi + 8]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc0]
fstp qword [esp + 8]
fld dword [esi + 4]
fstp qword [esp]
call fcn.00480680
mov edx, dword [esp + 0x1c]
sub esp, 8
sub esp, 8
lea ecx, [esp + 0xc0]
fstp dword [edx + 4]
fld dword [esi + 8]
mov eax, dword [esp + 0x44]
fstp qword [esp + 8]
fld dword [esi + 4]
add eax, edi
fstp qword [esp]
mov dword [esp + 0x2c], eax
call fcn.004806a0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
sub edx, 0xc
add edi, 0xc
dec eax
fstp dword [ecx + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jne 0x4f2550
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x34]
lea edi, [esi + 1]
test edi, edi
jne 0x4f2607
test eax, eax
je 0x4f25f8
push eax
call fcn.0050b204
add esp, 4
xor eax, eax
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
jmp 0x4f2715
test eax, eax
jne 0x4f2636
lea edx, [edi + edi*2]
shl edx, 2
push edx
call fcn.0050b264
add esp, 4
mov dword [esp + 0x34], eax
push edi
push eax
call fcn.00473c30
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
jmp 0x4f2715
mov ecx, dword [esp + 0x3c]
cmp edi, ecx
jg 0x4f2664
mov ecx, dword [esp + 0x38]
cmp edi, ecx
jle 0x4f265b
mov edx, edi
sub edx, ecx
lea ecx, [ecx + ecx*2]
push edx
lea edx, [eax + ecx*4]
push edx
call fcn.00473c30
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], edi
jmp 0x4f2715
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4f2691
mov eax, dword [esp + 0x38]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4f2685
mov eax, 4
jmp 0x4f2691
cmp eax, 0x400
jle 0x4f2691
mov eax, 0x400
add eax, ecx
cmp edi, eax
jge 0x4f269d
mov dword [esp + 0x10], eax
jmp 0x4f26a3
mov dword [esp + 0x10], edi
mov eax, edi
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.0050b264
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edi, eax
add esp, 4
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x1c], eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x38]
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*2]
push edx
lea edx, [eax + ecx*4]
push edx
call fcn.00473c30
mov eax, dword [esp + 0x34]
push eax
call fcn.0050b204
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov dword [eax], 1
mov eax, dword [esp + 0x34]
lea edx, [esi + esi*2]
mov dword [eax + edx*4], 4
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
lea esi, [ecx - 1]
test esi, esi
mov dword [esp + 0x1c], esi
jne 0x4f275b
test eax, eax
je 0x4f274e
push eax
call fcn.0050b204
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x4f2847
test eax, eax
jne 0x4f2783
lea ecx, [esi + esi*2]
shl ecx, 2
push ecx
call fcn.0050b264
add esp, 4
mov dword [ebx + 4], eax
push esi
push eax
call fcn.00473c30
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x4f2847
mov edi, dword [ebx + 0xc]
cmp esi, edi
jg 0x4f27a7
cmp esi, ecx
jle 0x4f279f
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*2]
push edx
lea edx, [eax + ecx*4]
push edx
call fcn.00473c30
mov dword [ebx + 8], esi
jmp 0x4f2847
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4f27d1
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4f27c5
mov eax, 4
jmp 0x4f27d1
cmp eax, 0x400
jle 0x4f27d1
mov eax, 0x400
add eax, edi
cmp esi, eax
jge 0x4f27dd
mov dword [esp + 0xc], eax
jmp 0x4f27e3
mov dword [esp + 0xc], esi
mov eax, esi
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.0050b264
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov edi, eax
add esp, 4
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x14], eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx + 8]
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*2]
push edx
lea edx, [eax + ecx*4]
push edx
call fcn.00473c30
mov eax, dword [ebx + 4]
push eax
call fcn.0050b204
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
lea ecx, [esp + 0x50]
call fcn.0047ded0
mov al, byte [ebp + 0x18]
mov byte [esp + 0x108], 2
test al, al
je 0x4f286d
fld qword [ebp + 0x10]
lea edx, [esp + 0x50]
fabs
push edx
fchs
jmp 0x4f2877
fld qword [ebp + 0x10]
lea eax, [esp + 0x50]
push eax
fabs
mov ecx, dword [ebp + 0xc]
sub esp, 8
fstp qword [esp]
call fcn.0047ee30
push fcn.00479010
push fcn.00478fc0
push 2
lea ecx, [esp + 0x84]
push 0x1c
push ecx
call fcn.0050c29d
lea edx, [esp + 0x78]
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x114], 3
call fcn.004f2b30
xor eax, eax
lea esi, [esp + 0x94]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
xor edi, edi
and eax, 0xff
lea edx, [eax*8]
sub edx, eax
shl edx, 2
sub esi, edx
mov eax, dword [esi + 8]
test eax, eax
jle 0x4f293d
mov edx, dword [esi + 4]
mov ecx, dword [edx]
test cl, 6
jne 0x4f2900
inc dword [esp + 0xc]
jmp 0x4f2909
cmp ecx, 4
jne 0x4f2909
inc dword [esp + 0x10]
inc edi
add edx, 0xc
cmp edi, eax
jl 0x4f28f3
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x4f2938
push fcn.00479010
push 2
lea eax, [esp + 0x80]
push 0x1c
mov byte [esp + 0x114], 2
push eax
jmp 0x4f2956
cmp eax, 2
je 0x4f29ad
push fcn.00479010
push 2
lea ecx, [esp + 0x80]
push 0x1c
mov byte [esp + 0x114], 2
push ecx
call fcn.0050c1a9
lea ecx, [esp + 0x50]
mov byte [esp + 0x108], 1
call fcn.00507a00
lea ecx, [esp + 0x30]
mov byte [esp + 0x108], 0
call fcn.00479010
lea ecx, [esp + 0xb0]
mov dword [esp + 0x108], 0xffffffff
call fcn.00507a00
xor al, al
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [eax], 3
mov edi, dword [ebx + 8]
mov ecx, dword [esi + 8]
mov edx, edi
add edx, ecx
mov ecx, ebx
push edx
call fcn.0042f940
mov edx, dword [ebx + 4]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
lea ecx, [edi + edi*2]
lea ecx, [edx + ecx*4]
mov edx, eax
dec eax
test edx, edx
je 0x4f2a0a
inc eax
mov dword [esp + 0x14], eax
mov eax, esi
mov edx, ecx
add ecx, 0xc
add esi, 0xc
mov edi, dword [eax]
mov dword [edx], edi
mov edi, dword [eax + 4]
mov dword [edx + 4], edi
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x4f29e5
mov ecx, dword [esp + 0x4c]
push ebx
call fcn.004f2200
push fcn.00479010
push 2
lea ecx, [esp + 0x80]
push 0x1c
push ecx
mov byte [esp + 0x118], 2
call fcn.0050c1a9
lea ecx, [esp + 0x50]
mov byte [esp + 0x108], 1
call fcn.00507a00
lea ecx, [esp + 0x30]
mov byte [esp + 0x108], 0
call fcn.00479010
lea ecx, [esp + 0xb0]
mov dword [esp + 0x108], 0xffffffff
call fcn.00507a00
mov eax, dword [ebx + 8]
cmp eax, 2
jle 0x4f2abf
mov ecx, dword [ebx + 4]
lea eax, [eax + eax*2]
push 0xffffffffffffffff
mov dword [ecx + eax*4 - 0xc], 3
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov esi, dword [edx]
inc ecx
push ecx
mov ecx, ebx
mov edi, dword [edx + 4]
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], eax
call fcn.0042f940
mov eax, dword [ebx + 8]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4 - 0xc]
mov edx, dword [esp + 0x24]
mov ecx, eax
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edx
mov dword [eax], 4
mov ecx, dword [esp + 0x100]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [ebp + 0x1c]
push 0xffffffffffffffff
mov eax, dword [esi + 8]
lea edx, [eax + eax*2]
mov eax, dword [esi + 4]
mov dword [eax + edx*4 - 0xc], 8
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
mov edi, dword [ecx]
inc eax
push eax
mov ebx, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov ecx, esi
mov dword [esp + 0x2c], edx
call fcn.0042f940
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*4 - 0xc]
mov edx, dword [esp + 0x24]
mov ecx, eax
mov dword [ecx], edi
mov dword [ecx + 4], ebx
jmp 0x4f2ab6