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

Disassembly:
sub esp, 0x2c
mov edx, dword [eax]
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x378]
push ebp
mov ebp, dword [ecx + 0x74]
mov ecx, dword [ecx + 0x78]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push esi
push edi
xor edi, edi
mov dword [esp + 0x38], eax
cmp dword [ebx + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jne 0x5e1139
push 0x7fffffff
call fcn.0062c5f0
mov dword [0x69e248], eax
add esp, 4
mov eax, 0x6be820
call fcn.005e0c40
mov eax, 0x6be400
call fcn.005e0c40
mov eax, dword [ebx + 0x378]
lea ecx, [eax + 0x40]
mov esi, dword [ecx]
lea edx, [ebx + 0xd8]
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov esi, dword [ecx + 8]
mov dword [edx + 8], esi
mov esi, dword [ecx + 0xc]
mov dword [edx + 0xc], esi
mov esi, dword [ecx + 0x10]
mov dword [edx + 0x10], esi
mov ecx, dword [ecx + 0x14]
mov dword [edx + 0x14], ecx
mov esi, dword [eax + 0x34]
xor edx, edx
cmp esi, edi
setne dl
mov esi, ebx
mov dword [ebx + 0x358], edi
mov dword [ebx + 0x354], edx
call fcn.005d97a0
mov eax, dword [ebx + 0x1c]
cmp eax, edi
jne 0x5e11a1
mov ecx, dword [ebx + 0x378]
test byte [ecx + 0x7c], 0x10
je 0x5e11a1
mov ecx, 1
jmp 0x5e11a3
xor ecx, ecx
cmp eax, edi
mov dword [ebx + 0x98], ecx
je 0x5e11cb
mov eax, 0x3a83126f
mov dword [ebx + 0x9c], edi
mov dword [ebx + 0xb0], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jmp 0x5e1417
mov eax, dword [ebx + 0x378]
mov edx, dword [eax + 0x70]
sar edx, 1
mov dword [ebx + 0x78], edx
mov edx, dword [eax + 0x70]
lea ecx, [ebx + 0x6c]
push ecx
sar edx, 1
push edx
call fcn.005c68c0
add esp, 8
test ebp, ebp
lea edi, [ebx + 0x58]
mov dword [edi], 0
mov dword [ebx + 0x4c], 0
jg 0x5e120b
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x5e12ad
fild dword [esp + 0x1c]
mov eax, dword [ebx + 0x9c]
test eax, eax
lea esi, [ebx + 0x50]
fstp dword [esi]
lea ebp, [ebx + 0x54]
fild dword [esp + 0x14]
fstp dword [ebp]
je 0x5e123f
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push esi
lea eax, [ebx + 0xf0]
push eax
push ecx
push edx
call fcn.00510ae0
add esp, 0x10
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00510d60
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fstp qword [esp + 0x2c]
add esp, 8
fld qword [esp + 0x24]
mov dword [edi], edx
fcomp qword [0x66a720]
fnstsw ax
test ah, 0x41
jne 0x5e1283
fld dword [esi]
fdiv dword [esp + 0x14]
fstp dword [esi]
fld dword [ebp]
fdiv dword [esp + 0x14]
fstp dword [ebp]
fld qword [esp + 0x24]
push esi
fdiv qword [0x6730f0]
fstp dword [edi]
call fcn.004f86c0
push ebp
mov dword [ebx + 0x44], eax
call fcn.004f86c0
push edi
mov dword [ebx + 0x48], eax
call fcn.004f86c0
add esp, 0xc
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x5e12fc
mov eax, dword [ebx + 0x378]
mov eax, dword [eax + 0x7c]
mov ecx, eax
and cl, 0xc
cmp cl, 4
je 0x5e12cd
and al, 3
cmp al, 1
jne 0x5e12fc
test dword [ebx + 0xb0], 0x7fffffff
je 0x5e12fc
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x5e12ec
push eax
call fcn.005da3d0
add esp, 4
jmp 0x5e12f5
mov eax, dword [esp + 0x54]
call fcn.005da550
mov dword [ebx + 0x20], 0
mov ecx, dword [ebx + 0x378]
mov dword [ebx + 0x24], 1
fld dword [ecx + 4]
fld dword [ebx + 0xa4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5e1338
mov ecx, dword [ecx + 4]
fld dword [0x671614]
mov dword [esp + 0x1c], ecx
fdiv dword [esp + 0x1c]
mov dword [ebx + 0xa4], ecx
fstp dword [ebx + 0xac]
mov eax, dword [ebx + 0x9c]
test eax, eax
je 0x5e13d7
lea edx, [esp + 0x1c]
push edx
xor ecx, ecx
lea esi, [ebx + 0xf0]
push esi
mov eax, 0x3f800000
push ecx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
call fcn.00510ae0
fld dword [ebx + 0xb0]
mov eax, dword [esp + 0x30]
fmul dword [ebx + 0xa4]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
fstp dword [esp + 0x28]
call fcn.00510d60
fdivr dword [esp + 0x28]
lea edx, [esp + 0x34]
push edx
mov ecx, 0x3f800000
push esi
xor eax, eax
push ecx
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
fstp dword [esp + 0x38]
call fcn.00510ae0
fld dword [ebx + 0xb0]
mov eax, dword [esp + 0x48]
fmul dword [ebx + 0xa4]
mov ecx, dword [esp + 0x44]
push eax
push ecx
fstp dword [esp + 0x44]
call fcn.00510d60
fdivr dword [esp + 0x44]
add esp, 0x30
fstp dword [esp + 0x14]
jmp 0x5e13ef
fld dword [ebx + 0xb0]
fmul dword [ebx + 0xa4]
fstp dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov eax, dword [ebx + 0x98]
xor edi, edi
test eax, eax
je 0x5e1417
fld dword [esp + 0x10]
fadd dword [0x671614]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fadd dword [0x671614]
fstp dword [esp + 0x14]
fld dword [esp + 0x2c]
mov eax, dword [ebx + 0x18]
cmp eax, edi
fsub dword [esp + 0x10]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fsub dword [esp + 0x14]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fadd dword [esp + 0x10]
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fadd dword [esp + 0x14]
fstp dword [esp + 0x38]
je 0x5e1469
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00538470
add esp, 8
cmp eax, 1
mov dword [esp + 0x18], eax
je 0x5e17db
fld dword [esp + 0x2c]
fcomp dword [0x6745d0]
fnstsw ax
test ah, 0x41
jne 0x5e14b4
fld dword [esp + 0x30]
fcomp dword [0x6745d0]
fnstsw ax
test ah, 0x41
jne 0x5e14b4
fld dword [esp + 0x34]
fcomp dword [0x6745d4]
fnstsw ax
test ah, 5
jp 0x5e14b4
fld dword [esp + 0x38]
fcomp dword [0x6745d4]
fnstsw ax
test ah, 5
jp 0x5e14b4
mov eax, 1
jmp 0x5e14b6
xor eax, eax
mov ecx, dword [ebx + 0x37c]
cmp ecx, edi
mov dword [ebx + 0x38], eax
je 0x5e151d
cmp dword [ebx + 0x3c], edi
jne 0x5e14f5
cmp eax, edi
je 0x5e14f5
fld dword [esp + 0x10]
fcomp dword [0x677870]
fnstsw ax
test ah, 5
jp 0x5e14f5
fld dword [esp + 0x14]
fcomp dword [0x677870]
fnstsw ax
test ah, 5
jp 0x5e14f5
mov edx, 1
jmp 0x5e14f7
xor edx, edx
cmp dword [ebx + 0x18], edi
mov eax, 1
je 0x5e1505
mov eax, dword [esp + 0x18]
mov esi, dword [ecx]
push eax
push edx
push ecx
lea ecx, [esp + 0x38]
push ecx
call dword [esi + 0x10]
add esp, 0x10
test eax, eax
je 0x5e17db
cmp dword [ebx + 0x354], edi
je 0x5e1746
cmp dword [ebx + 0x9c], edi
jne 0x5e15d2
cmp ebx, 0x6be820
mov edx, dword [ebx + 0x378]
lea edi, [edx + 8]
mov esi, 0x6be7e0
je 0x5e1550
mov esi, 0x6be7a0
lea ebp, [esp + 0x24]
push ebp
add edx, 0x40
xor ecx, ecx
push edx
mov eax, 0x3f800000
push ecx
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call fcn.00510ae0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.00510d60
fstp dword [esp + 0x34]
mov ecx, dword [ebx + 0x378]
mov dword [ebx + 0x35c], esi
mov edx, dword [ecx + 0x34]
add esp, 0x18
xor eax, eax
test edx, edx
jle 0x5e15bb
lea ebx, [ebx]
fld dword [esp + 0x1c]
add esi, 4
fmul dword [edi]
add edi, 4
inc eax
fstp dword [esi - 4]
mov edx, dword [ebx + 0x378]
cmp eax, dword [edx + 0x34]
jl 0x5e15a0
mov eax, dword [ebx + 0x378]
fld dword [esp + 0x1c]
fmul dword [eax + 0x38]
xor edi, edi
fstp dword [ebx + 0x368]
jmp 0x5e15ea
mov eax, dword [ebx + 0x378]
lea ecx, [eax + 8]
mov dword [ebx + 0x35c], ecx
mov edx, dword [eax + 0x38]
mov dword [ebx + 0x368], edx
mov ecx, dword [ebx + 0x368]
cmp ecx, edi
jge 0x5e16af
mov edx, 0x7fffffff
test edx, ecx
je 0x5e16af
mov eax, dword [eax + 0x34]
dec eax
mov dword [ebx + 0x364], eax
mov ecx, eax
mov eax, dword [ebx + 0x35c]
mov dword [ebx + 0x370], edi
fld dword [eax + ecx*4]
fadd dword [ebx + 0x368]
fstp dword [ebx + 0x368]
mov eax, dword [ebx + 0x368]
cmp eax, edi
jge 0x5e1695
test dword [ebx + 0x368], edx
je 0x5e1695
mov esi, dword [ebx + 0x370]
mov eax, dword [ebx + 0x364]
xor ecx, ecx
cmp esi, edi
sete cl
dec eax
mov dword [ebx + 0x364], eax
mov dword [ebx + 0x370], ecx
jns 0x5e1670
mov eax, dword [ebx + 0x378]
mov ecx, dword [eax + 0x34]
dec ecx
mov dword [ebx + 0x364], ecx
mov eax, dword [ebx + 0x364]
mov ecx, dword [ebx + 0x35c]
fld dword [ecx + eax*4]
fadd dword [ebx + 0x368]
fstp dword [ebx + 0x368]
mov eax, dword [ebx + 0x368]
cmp eax, edi
jl 0x5e1636
mov edx, dword [ebx + 0x364]
mov eax, dword [ebx + 0x35c]
fld dword [eax + edx*4]
fsub dword [ebx + 0x368]
jmp 0x5e1740
fld dword [ebx + 0x368]
mov ecx, dword [ebx + 0x35c]
mov dword [ebx + 0x364], edi
mov dword [ebx + 0x370], 1
fsub dword [ecx]
fstp dword [ebx + 0x368]
mov eax, dword [ebx + 0x368]
cmp eax, edi
jle 0x5e1738
lea ecx, [ecx]
mov ebp, dword [ebx + 0x370]
mov esi, dword [ebx + 0x364]
mov ecx, dword [ebx + 0x378]
xor edx, edx
cmp ebp, edi
sete dl
inc esi
mov dword [ebx + 0x364], esi
mov eax, esi
mov dword [ebx + 0x370], edx
cmp eax, dword [ecx + 0x34]
jne 0x5e1713
mov dword [ebx + 0x364], edi
mov eax, dword [ebx + 0x35c]
fld dword [ebx + 0x368]
mov edx, dword [ebx + 0x364]
fsub dword [eax + edx*4]
fstp dword [ebx + 0x368]
mov eax, dword [ebx + 0x368]
cmp eax, edi
jg 0x5e16e0
fld dword [ebx + 0x368]
fchs
fstp dword [ebx + 0x368]
cmp dword [ebx + 0x1c], edi
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x30], 1
je 0x5e1761
mov dword [ebx + 0x118], 0x5d9800
jmp 0x5e176b
mov dword [ebx + 0x118], 0x5d9870
lea eax, [ebx + 0xb0]
push eax
call fcn.004f86c0
mov dword [ebx + 0x110], eax
mov eax, dword [ebx + 0x354]
add esp, 4
cmp eax, edi
jne 0x5e178f
cmp dword [ebx + 0x1c], edi
jne 0x5e17e8
cmp dword [esp + 0x40], edi
je 0x5e17e8
cmp dword [ebx + 0x9c], edi
jne 0x5e17e8
mov ecx, dword [ebx + 0x378]
test byte [ecx + 0x7c], 3
jne 0x5e17e8
cmp dword [ebx + 0xc], edi
jne 0x5e17e8
cmp dword [ebx + 0x38], edi
je 0x5e17e8
mov edx, dword [ebx + 0x37c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push ebx
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
call fcn.005e0cd0
add esp, 0x18
test eax, eax
je 0x5e17e8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x58]
cmp eax, edi
je 0x5e1816
fld dword [eax]
fsub dword [esp + 0x10]
fstp dword [eax]
fld dword [eax + 4]
fsub dword [esp + 0x14]
fstp dword [eax + 4]
fld dword [esp + 0x10]
fadd dword [eax + 8]
fstp dword [eax + 8]
fld dword [esp + 0x14]
fadd dword [eax + 0xc]
fstp dword [eax + 0xc]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret