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

Disassembly:
sub esp, 0x3ec
mov eax, dword [0x6f1c94]
mov ecx, dword [eax + 0xc]
push ebx
push ebp
mov ebp, dword [0x8606b4]
push esi
push edi
or edx, 0xffffffff
mov edi, ebp
mov dword [esp + 0x2c], ecx
mov word [0x8606b0], 0
call fcn.004d0670
mov edi, eax
cmp edi, 0xffffffff
je 0x4f0fd6
lea ebx, [ebx]
mov ecx, dword [ebp + 0x34]
mov esi, edi
and esi, 0xffff
imul esi, esi, 0x7c
mov eax, dword [ecx + esi + 0x58]
and byte [ecx + esi + 2], 0xf7
add ecx, esi
cmp eax, 0xffffffff
mov dword [ecx + 8], 0xffffffff
je 0x4f0f8d
mov edx, dword [esp + 0x2c]
sub edx, eax
mov eax, dword [ecx + 4]
and eax, 0xffff
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov edx, dword [0x87b7b4]
shl eax, 5
mov eax, dword [eax + edx + 0x14]
fcomp dword [eax + 0xf4]
fnstsw ax
test ah, 0x41
jne 0x4f0f4a
mov ecx, dword [ebp + 0x34]
lea edx, [esi + ecx + 0x10]
push edx
push edi
mov ebx, 0x8606c0
call fcn.00552450
add esp, 8
mov edx, edi
mov eax, ebp
call fcn.004d0550
jmp 0x4f0f8d
mov ecx, dword [ecx + 0x2c]
push 0xffffffffffffffff
call fcn.004f7060
add esp, 4
test eax, eax
je 0x4f0f8d
mov ebp, dword [ebp + 0x34]
mov al, byte [ebp + esi + 2]
add ebp, esi
test al, 2
je 0x4f0f7e
lea eax, [ebp + 0x10]
push eax
push edi
mov ebx, 0x8606c0
call fcn.00552450
add esp, 8
and byte [ebp + 2], 0xfb
push edi
call fcn.004f2ba0
mov ebp, dword [0x8606b4]
add esp, 4
lea ecx, [edi + 1]
or esi, 0xffffffff
test cx, cx
jl 0x4f0fcb
mov di, word [ebp + 0x2e]
cmp cx, di
jge 0x4f0fcb
movsx edx, word [ebp + 0x22]
mov ebx, dword [ebp + 0x34]
movsx eax, cx
imul eax, edx
add eax, ebx
cmp word [eax], 0
jne 0x4f0fc0
inc ecx
add eax, edx
cmp cx, di
jl 0x4f0fb0
jmp 0x4f0fcb
movsx esi, word [eax]
movsx ecx, cx
shl esi, 0x10
or esi, ecx
cmp esi, 0xffffffff
mov edi, esi
jne 0x4f0ed0
mov edx, dword [0x860364]
push 0x4f37f0
push 0x4f37c0
push 0x4f36d0
push 0x4f36a0
push 0x4f3660
inc edx
push 0x80
push 0x86036c
mov dword [0x860364], edx
mov byte [0x860360], 1
call fcn.00554850
add esp, 0x1c
mov word [0x860368], ax
mov byte [0x860360], 0
mov dword [0x7c1020], 0
call fcn.00526870
xor esi, esi
cmp word [0x7cff30], si
jle 0x4f105f
lea esp, [esp]
movsx edx, si
imul edx, edx, 0x1a0
mov cx, word [edx + 0x7c2f30]
call fcn.00513ba0
inc esi
cmp si, word [0x7cff30]
jl 0x4f1040
cmp word [0x860368], 0
mov dword [esp + 0x28], 0
jle 0x4f173f
jmp 0x4f1080
movsx eax, word [esp + 0x28]
mov ebp, dword [eax*4 + 0x86036c]
mov ecx, dword [0x8606b4]
mov ebx, dword [ecx + 0x34]
mov eax, dword [0x87b7b4]
mov dword [esp + 0x60], ebp
and ebp, 0xffff
imul ebp, ebp, 0x7c
mov edx, dword [ebp + ebx + 4]
add ebp, ebx
and edx, 0xffff
shl edx, 5
mov edi, dword [edx + eax + 0x14]
mov eax, dword [ebp + 0x2c]
cmp eax, 0xffffffff
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x3f800000
je 0x4f1128
mov edx, eax
xor ebx, ebx
sar edx, 0x10
test ax, ax
jl 0x4f110d
mov ecx, dword [0x85ff50]
cmp ax, word [ecx + 0x20]
jge 0x4f110d
movsx ecx, word [ecx + 0x22]
movsx esi, ax
imul ecx, esi
mov esi, dword [0x85ff50]
add ecx, dword [esi + 0x34]
mov si, word [ecx]
test si, si
je 0x4f110d
test dx, dx
je 0x4f110b
cmp si, dx
jne 0x4f110d
mov ebx, ecx
xor edx, edx
test ebx, ebx
je 0x4f1124
mov cl, byte [ebx + 3]
mov esi, 1
shl esi, cl
test esi, esi
je 0x4f1124
mov edx, dword [ebx + 8]
mov esi, edx
jmp 0x4f112a
xor esi, esi
mov ecx, dword [ebp + 0x58]
cmp ecx, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x4f11b3
mov cx, word [ebp + 0x5e]
cmp cx, 0xffff
jne 0x4f114a
mov dword [esp + 0x10], 0x3f800000
jmp 0x4f116c
and eax, 0xffff
lea edx, [eax + eax*2]
mov eax, dword [0x85ff50]
mov eax, dword [eax + 0x34]
mov edx, dword [eax + edx*4 + 8]
movsx ecx, cx
fld dword [edx + ecx*4 + 0x134]
fstp dword [esp + 0x10]
mov ax, word [ebp + 0x60]
cmp ax, 0xffff
jne 0x4f117e
mov edi, dword [0x686b04]
jmp 0x4f118b
movsx eax, ax
lea eax, [eax + eax*2]
lea edi, [esi + eax*4 + 0x1b8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea edx, [eax + 0x38]
push ecx
push edx
mov edx, dword [eax + 0x34]
lea esi, [ebp + 0x14]
lea ebx, [eax + 0x48]
call fcn.0043f7d0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add esp, 8
jmp 0x4f11ff
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push ecx
mov cx, word [edi + 0xfa]
fdiv dword [edi + 0xf4]
fstp dword [esp]
call fcn.004ccb00
fsubr dword [0x672afc]
mov ebx, dword [edi + 0x34]
lea edx, [ebp + 0x14]
lea eax, [edi + 0x4c]
fmul dword [ebp + 0x78]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
push ecx
push ebx
lea ecx, [edi + 0x3c]
push edx
call fcn.0043f6a0
add esp, 0x10
test esi, esi
fld dword [0x672afc]
fsub dword [esp + 0x10]
fstp dword [esp + 0x20]
je 0x4f12c7
mov eax, dword [ebp + 0x2c]
or ecx, 0xffffffff
cmp eax, 0xffffffff
je 0x4f1249
mov edx, dword [0x85ff50]
mov edx, dword [edx + 0x34]
lea esp, [esp]
mov ecx, eax
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 8]
mov eax, dword [eax + 0x11c]
cmp eax, 0xffffffff
jne 0x4f1230
mov edx, dword [0x85ff50]
mov eax, dword [edx + 0x34]
and ecx, 0xffff
lea ecx, [ecx + ecx*2]
mov edx, dword [eax + ecx*4 + 8]
mov cl, byte [edx + 0xb4]
mov eax, 1
shl eax, cl
test al, 3
je 0x4f12c7
fld dword [edx + 0x37c]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x4f12c7
mov ecx, dword [ebp + 4]
mov eax, dword [0x87b7b4]
and ecx, 0xffff
shl ecx, 5
mov ecx, dword [ecx + eax + 0x14]
test byte [ecx], 0x20
jne 0x4f12c7
fld dword [0x672afc]
fsub dword [edx + 0x37c]
fst dword [esp + 0x1c]
fmul dword [ebp + 0x14]
fstp dword [ebp + 0x14]
fld dword [esp + 0x1c]
fmul dword [ebp + 0x18]
fstp dword [ebp + 0x18]
fld dword [esp + 0x1c]
fmul dword [ebp + 0x1c]
fstp dword [ebp + 0x1c]
fld dword [0x672af8]
lea ecx, [ebp + 0x14]
fld dword [ecx]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4f1307
fld dword [0x672af8]
fld dword [ebp + 0x18]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4f1307
fld dword [0x672af8]
fld dword [ebp + 0x1c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4f1729
mov esi, dword [esp + 0x14]
test byte [ebp + 2], 1
je 0x4f14d2
fld dword [esp + 0x20]
fmul dword [edi + 8]
fld dword [esp + 0x10]
fmul dword [edi + 0xc]
faddp st(1)
fmul dword [edi + 4]
fst dword [ebp + 0x54]
fld dword [0x672af8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4f14da
mov edx, dword [ebp + 4]
fstp dword [esp + 0x98]
mov eax, dword [0x87b7b4]
and edx, 0xffff
shl edx, 5
mov edx, dword [edx + eax + 0x14]
mov dword [esp + 0x64], edx
lea eax, [ebp + 0x30]
mov edx, dword [eax]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
lea edx, [ebp + 0x3c]
mov eax, dword [edx]
mov dword [esp + 0x74], eax
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
lea eax, [ebp + 0x48]
mov edx, dword [eax]
mov dword [esp + 0x80], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x84], edx
mov edx, dword [ecx]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x90], eax
cmp dword [ebp + 0x58], 0xffffffff
mov dword [esp + 0x8c], edx
mov dword [esp + 0x94], ecx
jne 0x4f1487
test byte [edi], 0x10
je 0x4f13f6
mov edi, dword [ebp + 0x2c]
lea edx, [esp + 0x68]
push edx
lea esi, [esp + 0x84]
lea ebx, [esp + 0x78]
call fcn.00492c80
add esp, 4
jmp 0x4f147f
cmp word [esi + 0xb4], 2
jne 0x4f1487
cmp dword [esi + 0x11c], 0xffffffff
je 0x4f1487
mov edx, dword [ebp + 0x2c]
mov esi, dword [0x85ff50]
mov esi, dword [esi + 0x34]
mov cx, word [ebp + 0x5c]
mov eax, edx
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [esi + eax*4 + 8]
mov eax, dword [eax]
mov esi, dword [0x87b7b4]
and eax, 0xffff
shl eax, 5
test cx, cx
mov eax, dword [eax + esi + 0x14]
jl 0x4f1460
mov esi, dword [eax + 0x140]
movsx ecx, cx
cmp ecx, esi
jge 0x4f1460
mov eax, dword [eax + 0x144]
lea ecx, [ecx + ecx*8]
lea eax, [eax + ecx*8 + 0x10]
jmp 0x4f1462
xor eax, eax
lea ecx, [esp + 0x68]
push ecx
push eax
lea esi, [esp + 0x88]
lea edi, [esp + 0x7c]
call fcn.00492d30
add esp, 8
test al, al
je 0x4f1483
or byte [ebp + 2], 8
mov edi, dword [esp + 0x18]
mov eax, dword [0x7c1020]
or ebx, 0xffffffff
cmp eax, 0x80
jge 0x4f14c1
mov ebx, eax
mov edi, ebx
imul edi, edi, 0x38
inc eax
add edi, 0x7c1024
mov dword [0x7c1020], eax
mov ecx, 0xe
lea esi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x64]
call fcn.005268d0
mov edi, dword [esp + 0x18]
mov dx, bx
inc dx
mov dword [ebp + 8], ebx
mov word [0x8606b0], dx
jmp 0x4f14dc
mov eax, dword [edi + 4]
mov dword [ebp + 0x54], eax
jmp 0x4f14dc
fstp st(0)
mov eax, dword [edi + 0xb8]
cmp eax, 0xffffffff
je 0x4f1729
mov ecx, dword [0x87b7b4]
and eax, 0xffff
shl eax, 5
mov edx, dword [eax + ecx + 0x14]
lea eax, [ebp + 0x14]
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], 0x437f0000
mov edx, dword [esp + 0x20]
fld dword [esp + 0x1c]
fld dword [edx]
fld dword [edx + 4]
fld dword [edx + 8]
fld dword [esp + 0x5c]
fmul st(4), st(0)
fmul st(3), st(0)
fmul st(2), st(0)
fmulp st(1)
fistp dword [esp + 0x24]
and dword [esp + 0x24], 0xff
mov edx, dword [esp + 0x24]
fistp dword [esp + 0x24]
and dword [esp + 0x24], 0xff
shl dword [esp + 0x24], 8
or edx, dword [esp + 0x24]
fistp dword [esp + 0x24]
and dword [esp + 0x24], 0xff
shl dword [esp + 0x24], 0x10
or edx, dword [esp + 0x24]
fistp dword [esp + 0x24]
shl dword [esp + 0x24], 0x18
or edx, dword [esp + 0x24]
mov dword [esp + 0x24], edx
fld dword [esp + 0x10]
fmul dword [0x672b98]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], eax
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fistp dword [esp + 0x58]
mov eax, dword [esp + 0x60]
mov cl, byte [esp + 0x58]
mov dl, byte [0x7c2caa]
mov word [esp + 0x4e], ax
sar eax, 0x10
cmp ax, 0xffff
mov byte [esp + 0x53], cl
mov byte [esp + 0x52], dl
mov word [esp + 0x4c], ax
jne 0x4f15c5
mov word [esp + 0x4c], 0
cmp dword [ebp + 0x58], 0xffffffff
jne 0x4f16ea
mov esi, dword [ebp + 0x2c]
mov edx, dword [0x85ff50]
mov edx, dword [edx + 0x34]
mov cx, word [ebp + 0x5c]
mov eax, esi
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 8]
mov edx, dword [eax]
mov eax, dword [0x87b7b4]
and edx, 0xffff
shl edx, 5
test cx, cx
mov eax, dword [edx + eax + 0x14]
jl 0x4f1622
mov edx, dword [eax + 0x140]
movsx ecx, cx
cmp ecx, edx
jge 0x4f1622
mov edx, dword [eax + 0x144]
lea ecx, [ecx + ecx*8]
lea ebx, [edx + ecx*8 + 0x10]
jmp 0x4f1624
xor ebx, ebx
mov eax, dword [esp + 0x14]
cmp word [eax + 0xb4], 2
jne 0x4f1674
cmp dword [eax + 0x11c], 0xffffffff
je 0x4f1674
push esi
call fcn.00494110
add esp, 4
cmp word [0x7c2ca8], ax
jne 0x4f1674
push 8
lea eax, [esp + 0xa0]
push eax
push ebx
push esi
call fcn.00492bd0
add esp, 0x10
test ax, ax
mov dword [esp + 0x14], eax
jle 0x4f1672
or byte [esp + 0x52], 0x80
test ax, ax
jne 0x4f168f
mov edx, dword [ebp + 0x2c]
push 8
lea ecx, [esp + 0xa0]
push ecx
push ebx
push edx
call fcn.004f6220
add esp, 0x10
mov dword [esp + 0x14], eax
xor edi, edi
test ax, ax
jle 0x4f1729
lea ebp, [esp + 0xd8]
lea eax, [ebp + 0x24]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov esi, ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call fcn.00513470
lea esi, [ebp + 0x18]
mov dword [esp + 0x40], eax
call fcn.00513470
lea ebx, [esp + 0x30]
mov dword [esp + 0x44], eax
mov word [esp + 0x50], di
call fcn.00513a40
inc edi
add ebp, 0x6c
cmp di, word [esp + 0x14]
jl 0x4f16a1
jmp 0x4f1729
lea ecx, [ebp + 0x30]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
lea esi, [ebp + 0x3c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call fcn.00513470
lea esi, [ebp + 0x48]
mov dword [esp + 0x40], eax
call fcn.00513470
lea ebx, [esp + 0x30]
mov dword [esp + 0x44], eax
mov word [esp + 0x50], 0
call fcn.00513a40
mov eax, dword [esp + 0x28]
inc eax
cmp ax, word [0x860368]
mov dword [esp + 0x28], eax
jl 0x4f1080
xor esi, esi
cmp word [0x8606ac], si
jle 0x4f1780
lea ebx, [ebx]
movsx eax, si
lea ebx, [eax + eax*4]
lea ebx, [ebx*8 + 0x86056c]
call fcn.00513a40
inc esi
cmp si, word [0x8606ac]
jl 0x4f1750
pop edi
pop esi
pop ebp
mov word [0x8606ac], 0
pop ebx
add esp, 0x3ec
ret
pop edi
mov word [0x8606ac], si
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret