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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e927
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x5750c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x5fc614], 1
jne 0x4f5646
or dword [0x5fc614], 1
mov dword [ebp - 4], 0
call fcn.00492cb0
push 0x52b3e0
call fcn.0045f177
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5b30c0]
push eax
call fcn.00496db0
mov ecx, dword [0x5b308c]
push ecx
mov esi, 0x5bf868
call fcn.00493280
mov edx, dword [0x5b31ec]
push edx
call fcn.00493420
fld1
mov eax, dword [0x5b3074]
lea eax, [eax + ebx*4]
lea ecx, [eax + 0xb]
add eax, eax
mov eax, dword [edi + eax*8 + 0xb4]
add ecx, ecx
mov edx, dword [edi + ecx*8]
mov dword [ebp - 0x20], eax
mov eax, 1
add dword [edi + ebx*4 + 0x254], eax
mov dword [ebp - 0x14], edx
cmp dword [edi + ebx*4 + 0x254], eax
jle 0x4f56bd
lea ecx, [edi + 0x250]
test ecx, ecx
je 0x4f56bd
mov eax, dword [edi + ebx*4 + 0x250]
fld dword [eax + 0x34]
fadd st(1)
fstp dword [eax + 0x34]
mov eax, dword [edi + 0x20]
fldz
mov ecx, dword [0x5b3074]
xor edx, edx
cmp eax, edx
je 0x4f56eb
mov eax, dword [eax + 0x1c]
fstp st(1)
lea ecx, [ecx + ebx*4 + 0xb]
add ecx, ecx
mov ecx, dword [edi + ecx*8]
mov eax, dword [ecx + eax*4]
mov dword [edi + ebx*4 + 0x250], eax
jmp 0x4f59cc
lea eax, [ecx + ebx*4 + 0xb]
add eax, eax
mov ecx, dword [edi + eax*8]
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [edi + ebx*4 + 0x250], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x14], ecx
je 0x4f5913
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
fcom dword [esi + 0x48]
fnstsw ax
test ah, 5
jp 0x4f5752
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x40], eax
jge 0x4f574f
fild dword [ebp - 0x18]
fmul dword [esi + 0x48]
fcom st(2)
fnstsw ax
test ah, 5
jp 0x4f573c
fstp st(0)
fld st(1)
fiadd dword [esi + 0x40]
call fcn.00513620
mov dword [esi + 0x40], eax
cmp eax, dword [ebp - 0x18]
jle 0x4f5752
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x40], eax
mov eax, dword [edi + ebx*4 + 0x254]
cmp eax, dword [esi]
jl 0x4f5785
mov ecx, dword [esi + 4]
cmp eax, ecx
jle 0x4f5769
cmp ecx, 0xfffffffe
jne 0x4f5785
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4f5777
mov dword [edi + ebx*4 + 0x250], esi
mov ecx, dword [esi + 0x40]
add dword [ebp - 0x1c], ecx
mov dword [ebp + eax*4 - 0x70], esi
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x20]
jne 0x4f570f
cmp dword [ebp - 0x10], 0
fstp st(1)
jle 0x4f586b
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x64], 0
jle 0x4f586b
mov eax, edx
mov eax, dword [eax]
cmp eax, dword [edi + ebx*4 + 0x2e8]
jle 0x4f586b
mov ecx, edx
mov dword [edi + ebx*4 + 0x2e8], eax
mov eax, dword [ecx + 0x64]
cmp eax, 0x20
jle 0x4f57d7
mov eax, 0x20
xor esi, esi
mov dword [edi + ebx*4 + 0x2ec], eax
test eax, eax
jle 0x4f586b
mov edx, ebx
fstp st(0)
shl edx, 7
lea eax, [edx + edi + 0x268]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
nop
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x54]
add eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0x10
jb 0x4f5811
mov eax, dword [eax]
mov ecx, eax
call fcn.004e1ee0
test eax, eax
jns 0x4f5850
push 0
call fcn.004e1a30
mov ecx, dword [0x5b2ad8]
add ecx, 0xfffffffe
add esp, 4
cmp esi, ecx
jge 0x4f5850
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
jle 0x4f5850
mov edx, dword [ebp - 0x18]
lea ecx, [ecx]
cmp eax, dword [edx]
je 0x4f58ca
inc ecx
add edx, 4
cmp ecx, esi
jl 0x4f5840
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x14], 0x1c
mov dword [ecx], eax
inc esi
add ecx, 4
mov dword [ebp - 0x20], ecx
cmp esi, dword [edi + ebx*4 + 0x2ec]
jl 0x4f5800
fldz
cmp dword [ebp - 0x10], 1
jle 0x4f5915
mov eax, dword [ebp - 0x1c]
mov esi, dword [0x57c95c]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
lea eax, [eax + eax*4]
add eax, eax
push edx
mov edx, dword [esi + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push eax
push ecx
push edx
call fcn.00513700
add eax, dword [esi + 0x10]
adc edx, dword [esi + 0x14]
cmp dword [ebp - 0x1c], 0
mov dword [esi], eax
mov dword [esi + 4], edx
je 0x4f58d9
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4f58d9
mov cl, 0x20
call fcn.005136e0
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
push edx
push eax
call fcn.00513700
mov dword [ebp - 0x20], edx
jmp 0x4f58e3
push 0
call fcn.004e1a30
add esp, 4
jmp 0x4f5833
mov cl, 0x20
call fcn.005136e0
mov dword [ebp - 0x20], eax
xor eax, eax
xor ecx, ecx
cmp dword [ebp - 0x10], eax
jle 0x4f591b
mov edx, dword [ebp + ecx*4 - 0x70]
mov edx, dword [edx + 0x40]
lea edx, [edx + edx*4]
lea eax, [eax + edx*2]
cmp dword [ebp - 0x20], eax
jl 0x4f5906
inc ecx
cmp ecx, dword [ebp - 0x10]
jl 0x4f58ec
jmp 0x4f591b
mov eax, dword [ebp + ecx*4 - 0x70]
mov dword [edi + ebx*4 + 0x250], eax
jmp 0x4f591b
fstp st(1)
mov esi, dword [0x57c95c]
mov ecx, dword [edi + ebx*4 + 0x250]
mov edx, dword [ecx + 0x4c]
test edx, edx
jle 0x4f59bc
mov eax, dword [ecx + 0x50]
fstp st(0)
cmp edx, eax
jne 0x4f593a
mov esi, edx
jmp 0x4f5995
mov ecx, dword [esi + 4]
sub eax, edx
mov edx, dword [esi]
push ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
push edx
push eax
push ecx
call fcn.00513700
add eax, dword [esi + 0x10]
adc edx, dword [esi + 0x14]
cmp dword [ebp - 0x1c], 0
mov dword [esi], eax
mov dword [esi + 4], edx
je 0x4f5982
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4f5982
mov cl, 0x20
call fcn.005136e0
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
push edx
push eax
call fcn.00513700
mov eax, edx
jmp 0x4f5989
mov cl, 0x20
call fcn.005136e0
mov ecx, dword [edi + ebx*4 + 0x250]
mov esi, dword [ecx + 0x4c]
add esi, eax
mov eax, dword [0x5b3074]
add eax, 0x18
shl eax, 4
add eax, dword [0x5b30c0]
lea edx, [ecx + 0x6c]
call fcn.00407d40
fldz
mov dword [eax], esi
mov edx, dword [edi + ebx*4 + 0x250]
fst dword [edx + 0x48]
mov eax, dword [edi + ebx*4 + 0x250]
mov dword [eax + 0x40], 0
xor edx, edx
mov ecx, dword [edi + ebx*4 + 0x250]
fcom dword [ecx + 0x20]
fnstsw ax
fld qword [0x554d20]
test ah, 1
jne 0x4f59ee
fxch st(1)
fst dword [edi + ebx*4 + 0x258]
jmp 0x4f5a1d
fld dword [ecx + 0x34]
fmul dword [ecx + 0x24]
fadd dword [ecx + 0x20]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4f5a0e
fstp st(0)
fld dword [0x554fb8]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fstp dword [edi + ebx*4 + 0x258]
fxch st(1)
fld dword [ecx + 0x28]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fst dword [edi + ebx*4 + 0x25c]
fld dword [ecx + 0x30]
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x4f5a63
fld dword [edi + ebx*4 + 0x54]
fmul dword [ecx + 0x30]
faddp st(1)
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4f5a58
fstp st(1)
fstp dword [edi + ebx*4 + 0x25c]
jmp 0x4f5a67
fstp st(0)
fstp dword [edi + ebx*4 + 0x25c]
jmp 0x4f5a67
fstp st(0)
fstp st(0)
mov dword [ebp - 0x18], edx
cmp dword [ecx + 0xc], edx
jle 0x4f5af3
mov dword [ebp - 0x1c], 0
lea ebx, [ebx]
mov eax, dword [edi + ebx*4 + 0x250]
mov esi, dword [eax + 8]
fld dword [eax + 0x34]
add esi, dword [ebp - 0x1c]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
push ecx
mov eax, esi
fstp dword [esp]
call fcn.004eeed0
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0
call fcn.004f4990
fld dword [esi + 0x50]
fmul dword [ebp - 0x20]
fadd dword [esi + 0x4c]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fcom qword [0x554c18]
fnstsw ax
test ah, 5
jp 0x4f5ad3
fstp st(0)
fldz
mov eax, dword [ebp - 0x18]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
add dword [ebp - 0x1c], 0x68
fstp dword [esi + 0x60]
mov ecx, dword [edi + ebx*4 + 0x250]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ecx + 0xc]
jl 0x4f5a80
mov edx, dword [0x5b3074]
lea ecx, [edx + ebx*4]
lea eax, [ecx + 0x21]
add eax, eax
mov eax, dword [edi + eax*8]
add ecx, ecx
mov dword [ebp - 0x1c], eax
cmp eax, dword [edi + ecx*8 + 0x214]
je 0x4f5bb7
cmp dword [eax + 0x78], 0
jle 0x4f5b76
cmp dword [edi + ebx*4 + 0x254], 0
je 0x4f5b76
dec dword [eax + 0x78]
cmp dword [eax + 0x78], 0
jg 0x4f5b76
mov ecx, dword [0x5b3074]
mov edx, dword [ebp - 0x20]
lea esi, [ecx + ebx*4 + 0x21]
mov ecx, dword [ebp - 0x1c]
shl esi, 4
mov eax, dword [esi + edi + 4]
add esi, edi
push edx
push eax
lea eax, [ecx + 0x8c]
call fcn.0040cc40
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi + 4]
push ecx
push eax
add eax, 0xffffff74
call fcn.004089a0
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add dword [esi + 4], 0xffffff74
jmp 0x4f5b85
mov dword [eax + 8], 0
add eax, 0x8c
mov dword [ebp - 0x1c], eax
mov edx, dword [0x5b3074]
lea ecx, [edx + ebx*4]
add ecx, ecx
cmp eax, dword [edi + ecx*8 + 0x214]
jne 0x4f5b16
mov edx, dword [edi + ebx*4 + 0x250]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + ebx*4 + 0x250]
mov eax, dword [eax + 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret