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

Disassembly:
sub esp, 0x3ec
mov eax, dword [0x68cca8]
mov ecx, dword [eax + 0xc]
push ebx
push ebp
mov ebp, dword [0x7fba34]
push esi
push edi
or edx, 0xffffffff
mov edi, ebp
mov dword [esp + 0x2c], ecx
mov word [0x7fba30], 0
call fcn.004d3a30
mov edi, eax
cmp edi, 0xffffffff
je 0x4f48e6
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 0x4f489d
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 [0x816d04]
shl eax, 5
mov eax, dword [eax + edx + 0x14]
fcomp dword [eax + 0xf4]
fnstsw ax
test ah, 0x41
jne 0x4f485a
mov ecx, dword [ebp + 0x34]
lea edx, [esi + ecx + 0x10]
push edx
push edi
mov ebx, 0x7fba40
call fcn.00555910
add esp, 8
mov edx, edi
mov eax, ebp
call fcn.004d3910
jmp 0x4f489d
mov ecx, dword [ecx + 0x2c]
push 0xffffffffffffffff
call fcn.004fa970
add esp, 4
test eax, eax
je 0x4f489d
mov ebp, dword [ebp + 0x34]
mov al, byte [ebp + esi + 2]
add ebp, esi
test al, 2
je 0x4f488e
lea eax, [ebp + 0x10]
push eax
push edi
mov ebx, 0x7fba40
call fcn.00555910
add esp, 8
and byte [ebp + 2], 0xfb
push edi
call fcn.004f64b0
mov ebp, dword [0x7fba34]
add esp, 4
lea ecx, [edi + 1]
or esi, 0xffffffff
test cx, cx
jl 0x4f48db
mov di, word [ebp + 0x2e]
cmp cx, di
jge 0x4f48db
movsx edx, word [ebp + 0x22]
mov ebx, dword [ebp + 0x34]
movsx eax, cx
imul eax, edx
add eax, ebx
cmp word [eax], 0
jne 0x4f48d0
inc ecx
add eax, edx
cmp cx, di
jl 0x4f48c0
jmp 0x4f48db
movsx esi, word [eax]
movsx ecx, cx
shl esi, 0x10
or esi, ecx
cmp esi, 0xffffffff
mov edi, esi
jne 0x4f47e0
mov edx, dword [0x7fb6e4]
push 0x4f7100
push 0x4f70d0
push 0x4f6fe0
push 0x4f6fb0
push 0x4f6f70
inc edx
push 0x80
push 0x7fb6ec
mov dword [0x7fb6e4], edx
mov byte [0x7fb6e0], 1
call fcn.00557d10
add esp, 0x1c
mov word [0x7fb6e8], ax
mov byte [0x7fb6e0], 0
mov dword [0x75c3a0], 0
call fcn.00529b70
xor esi, esi
cmp word [0x76b2b0], si
jle 0x4f496f
lea esp, [esp]
movsx edx, si
imul edx, edx, 0x1a0
mov cx, word [edx + 0x75e2b0]
call fcn.00517430
inc esi
cmp si, word [0x76b2b0]
jl 0x4f4950
cmp word [0x7fb6e8], 0
mov dword [esp + 0x28], 0
jle 0x4f504f
jmp 0x4f4990
movsx eax, word [esp + 0x28]
mov ebp, dword [eax*4 + 0x7fb6ec]
mov ecx, dword [0x7fba34]
mov ebx, dword [ecx + 0x34]
mov eax, dword [0x816d04]
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 0x4f4a38
mov edx, eax
xor ebx, ebx
sar edx, 0x10
test ax, ax
jl 0x4f4a1d
mov ecx, dword [0x7fb2d0]
cmp ax, word [ecx + 0x20]
jge 0x4f4a1d
movsx ecx, word [ecx + 0x22]
movsx esi, ax
imul ecx, esi
mov esi, dword [0x7fb2d0]
add ecx, dword [esi + 0x34]
mov si, word [ecx]
test si, si
je 0x4f4a1d
test dx, dx
je 0x4f4a1b
cmp si, dx
jne 0x4f4a1d
mov ebx, ecx
xor edx, edx
test ebx, ebx
je 0x4f4a34
mov cl, byte [ebx + 3]
mov esi, 1
shl esi, cl
test esi, esi
je 0x4f4a34
mov edx, dword [ebx + 8]
mov esi, edx
jmp 0x4f4a3a
xor esi, esi
mov ecx, dword [ebp + 0x58]
cmp ecx, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x4f4ac3
mov cx, word [ebp + 0x5e]
cmp cx, 0xffff
jne 0x4f4a5a
mov dword [esp + 0x10], 0x3f800000
jmp 0x4f4a7c
and eax, 0xffff
lea edx, [eax + eax*2]
mov eax, dword [0x7fb2d0]
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 0x4f4a8e
mov edi, dword [0x6220c4]
jmp 0x4f4a9b
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.0043f7e0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add esp, 8
jmp 0x4f4b0f
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.004cfec0
fsubr dword [0x612224]
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.0043f6b0
add esp, 0x10
test esi, esi
fld dword [0x612224]
fsub dword [esp + 0x10]
fstp dword [esp + 0x20]
je 0x4f4bd7
mov eax, dword [ebp + 0x2c]
or ecx, 0xffffffff
cmp eax, 0xffffffff
je 0x4f4b59
mov edx, dword [0x7fb2d0]
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 0x4f4b40
mov edx, dword [0x7fb2d0]
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 0x4f4bd7
fld dword [edx + 0x37c]
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x4f4bd7
mov ecx, dword [ebp + 4]
mov eax, dword [0x816d04]
and ecx, 0xffff
shl ecx, 5
mov ecx, dword [ecx + eax + 0x14]
test byte [ecx], 0x20
jne 0x4f4bd7
fld dword [0x612224]
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 [0x612220]
lea ecx, [ebp + 0x14]
fld dword [ecx]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4f4c17
fld dword [0x612220]
fld dword [ebp + 0x18]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4f4c17
fld dword [0x612220]
fld dword [ebp + 0x1c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4f5039
mov esi, dword [esp + 0x14]
test byte [ebp + 2], 1
je 0x4f4de2
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 [0x612220]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4f4dea
mov edx, dword [ebp + 4]
fstp dword [esp + 0x98]
mov eax, dword [0x816d04]
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 0x4f4d97
test byte [edi], 0x10
je 0x4f4d06
mov edi, dword [ebp + 0x2c]
lea edx, [esp + 0x68]
push edx
lea esi, [esp + 0x84]
lea ebx, [esp + 0x78]
call fcn.00495a80
add esp, 4
jmp 0x4f4d8f
cmp word [esi + 0xb4], 2
jne 0x4f4d97
cmp dword [esi + 0x11c], 0xffffffff
je 0x4f4d97
mov edx, dword [ebp + 0x2c]
mov esi, dword [0x7fb2d0]
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 [0x816d04]
and eax, 0xffff
shl eax, 5
test cx, cx
mov eax, dword [eax + esi + 0x14]
jl 0x4f4d70
mov esi, dword [eax + 0x140]
movsx ecx, cx
cmp ecx, esi
jge 0x4f4d70
mov eax, dword [eax + 0x144]
lea ecx, [ecx + ecx*8]
lea eax, [eax + ecx*8 + 0x10]
jmp 0x4f4d72
xor eax, eax
lea ecx, [esp + 0x68]
push ecx
push eax
lea esi, [esp + 0x88]
lea edi, [esp + 0x7c]
call fcn.00495b30
add esp, 8
test al, al
je 0x4f4d93
or byte [ebp + 2], 8
mov edi, dword [esp + 0x18]
mov eax, dword [0x75c3a0]
or ebx, 0xffffffff
cmp eax, 0x80
jge 0x4f4dd1
mov ebx, eax
mov edi, ebx
imul edi, edi, 0x38
inc eax
add edi, 0x75c3a4
mov dword [0x75c3a0], eax
mov ecx, 0xe
lea esi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x64]
call fcn.00529bd0
mov edi, dword [esp + 0x18]
mov dx, bx
inc dx
mov dword [ebp + 8], ebx
mov word [0x7fba30], dx
jmp 0x4f4dec
mov eax, dword [edi + 4]
mov dword [ebp + 0x54], eax
jmp 0x4f4dec
fstp st(0)
mov eax, dword [edi + 0xb8]
cmp eax, 0xffffffff
je 0x4f5039
mov ecx, dword [0x816d04]
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 [0x6122c0]
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 [0x75e02a]
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 0x4f4ed5
mov word [esp + 0x4c], 0
cmp dword [ebp + 0x58], 0xffffffff
jne 0x4f4ffa
mov esi, dword [ebp + 0x2c]
mov edx, dword [0x7fb2d0]
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 [0x816d04]
and edx, 0xffff
shl edx, 5
test cx, cx
mov eax, dword [edx + eax + 0x14]
jl 0x4f4f32
mov edx, dword [eax + 0x140]
movsx ecx, cx
cmp ecx, edx
jge 0x4f4f32
mov edx, dword [eax + 0x144]
lea ecx, [ecx + ecx*8]
lea ebx, [edx + ecx*8 + 0x10]
jmp 0x4f4f34
xor ebx, ebx
mov eax, dword [esp + 0x14]
cmp word [eax + 0xb4], 2
jne 0x4f4f84
cmp dword [eax + 0x11c], 0xffffffff
je 0x4f4f84
push esi
call fcn.00496f10
add esp, 4
cmp word [0x75e028], ax
jne 0x4f4f84
push 8
lea eax, [esp + 0xa0]
push eax
push ebx
push esi
call fcn.004959d0
add esp, 0x10
test ax, ax
mov dword [esp + 0x14], eax
jle 0x4f4f82
or byte [esp + 0x52], 0x80
test ax, ax
jne 0x4f4f9f
mov edx, dword [ebp + 0x2c]
push 8
lea ecx, [esp + 0xa0]
push ecx
push ebx
push edx
call fcn.004f9b30
add esp, 0x10
mov dword [esp + 0x14], eax
xor edi, edi
test ax, ax
jle 0x4f5039
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.00516d00
lea esi, [ebp + 0x18]
mov dword [esp + 0x40], eax
call fcn.00516d00
lea ebx, [esp + 0x30]
mov dword [esp + 0x44], eax
mov word [esp + 0x50], di
call fcn.005172d0
inc edi
add ebp, 0x6c
cmp di, word [esp + 0x14]
jl 0x4f4fb1
jmp 0x4f5039
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.00516d00
lea esi, [ebp + 0x48]
mov dword [esp + 0x40], eax
call fcn.00516d00
lea ebx, [esp + 0x30]
mov dword [esp + 0x44], eax
mov word [esp + 0x50], 0
call fcn.005172d0
mov eax, dword [esp + 0x28]
inc eax
cmp ax, word [0x7fb6e8]
mov dword [esp + 0x28], eax
jl 0x4f4990
xor esi, esi
cmp word [0x7fba2c], si
jle 0x4f5090
lea ebx, [ebx]
movsx eax, si
lea ebx, [eax + eax*4]
lea ebx, [ebx*8 + 0x7fb8ec]
call fcn.005172d0
inc esi
cmp si, word [0x7fba2c]
jl 0x4f5060
pop edi
pop esi
pop ebp
mov word [0x7fba2c], 0
pop ebx
add esp, 0x3ec
ret
pop edi
mov word [0x7fba2c], si
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret