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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x665c8a
mov eax, dword fs:[0]
push eax
sub esp, 0xd88
push ebx
push esi
push edi
mov eax, dword [0x6d35d0]
xor eax, esp
push eax
lea eax, [esp + 0xd98]
mov dword fs:[0], eax
xor edi, edi
cmp dword [ebp + 8], edi
je 0x5d5321
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
je 0x5d5321
cmp dword [ebp + 0x10], edi
jg 0x5d467c
fild dword [ebp + 0x18]
mov eax, dword [ecx]
push 0xffffffffffffffff
push ecx
push ecx
fstp dword [esp + 4]
fild dword [ebp + 0x14]
fstp dword [esp]
call dword [eax + 0x74]
jmp 0x5d5323
cmp dword [ebp + 0x10], 0x3ff
jl 0x5d468c
mov al, 1
jmp 0x5d5323
mov eax, dword [ecx]
lea edx, [esp + 0x4c]
push edx
call dword [eax + 0x1c]
lea esi, [esp + 0x3cc]
call fcn.0049b413
mov eax, 0x7d8f
mov edx, esi
mov dword [esp + 0xda0], edi
call fcn.0049b56c
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
imul eax, eax
imul ecx, ecx
add eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x2c], edi
fild dword [esp + 0x20]
call fcn.0065aa80
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov ecx, dword [ebp + 8]
xor edi, edi
fstp dword [esp + 0x3c]
inc edi
call fcn.0046fcab
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x50]
add ecx, eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jge 0x5d5311
mov ebx, 0x1ff
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x4c]
xor edi, edi
add ecx, eax
cmp eax, ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], eax
jge 0x5d52c4
mov eax, dword [esp + 0x2c]
fild dword [esp + 0x2c]
add eax, 0x40
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
fstp dword [esp + 0x150]
fild dword [esp + 0x20]
sar eax, 3
and eax, ebx
lea eax, [eax*4 + 0x6f03e0]
fstp dword [esp + 0x14c]
mov dword [esp + 0x6c], eax
fldz
fadd qword [0x6a15f0]
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fstp dword [esp + 0x54]
fild dword [esp + 0x44]
fadd qword [0x6a15e8]
fstp qword [esp + 0x15c]
push dword [esp + 0x48]
mov ecx, dword [ebp + 0xc]
push dword [esp + 0x64]
mov eax, dword [ecx]
call dword [eax + 0x28]
lea esi, [eax + 8]
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x70], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [esp + 0x164]
push ecx
mov ecx, esi
call dword [eax + 0x9c]
fild dword [esp + 0x164]
add edi, 0x40
mov dword [esp + 0x20], edi
fstp dword [esp + 0x28]
lea edx, [esp + 0x3cc]
fild dword [esp + 0x1c]
fdiv dword [esp + 0x28]
fstp dword [esp + 0x5c]
fild dword [esp + 0x168]
fstp dword [esp + 0x1c]
fld dword [esp + 0x150]
fdiv dword [esp + 0x1c]
fstp dword [esp + 0x58]
fild dword [esp + 0x20]
fdiv dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x14c]
fdiv dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x68]
fstp dword [esp + 0x64]
call fcn.0049b44d
mov esi, eax
and esi, 0x7ff
call fcn.0049b44d
mov edi, eax
and edi, ebx
call fcn.0049b44d
and eax, ebx
mov dword [esp + 0x14], eax
mov eax, esi
imul eax, dword [ebp + 0x10]
cdq
mov esi, 0x3ff
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x30]
call fcn.004485e0
mov eax, edi
fstp dword [esp + 0x34]
imul eax, dword [ebp + 0x10]
cdq
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x18]
call fcn.004485e0
mov eax, dword [esp + 0x14]
fstp dword [esp + 0x24]
imul eax, dword [ebp + 0x10]
cdq
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x38]
call fcn.004485e0
lea edx, [esp + 0x3cc]
fstp dword [esp + 0x14]
call fcn.0049b44d
fld1
fst dword [esp + 0xcc]
sub esp, 0x40
fldz
mov esi, eax
fst dword [esp + 0x110]
lea eax, [esp + 0x30c]
fst dword [esp + 0x114]
and esi, ebx
fst dword [esp + 0x118]
fst dword [esp + 0x11c]
fst dword [esp + 0x124]
fst dword [esp + 0x128]
fst dword [esp + 0x12c]
fst dword [esp + 0x130]
fst dword [esp + 0x138]
fxch st(1)
fst dword [esp + 0x120]
fst dword [esp + 0x134]
fld dword [0x6a23c0]
fst dword [esp + 0x13c]
fstp dword [esp + 0x140]
fxch st(1)
fst dword [esp + 0x144]
fxch st(1)
fst dword [esp + 0x148]
fst dword [esp + 0x3c]
fxch st(1)
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fld dword [esp + 0x64]
fstp dword [esp + 0x28]
fld dword [esp + 0x58]
fchs
fstp dword [esp + 0x24]
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
fld dword [esp + 0x58]
fstp dword [esp + 0x18]
fld dword [esp + 0x64]
fstp dword [esp + 0x14]
fst dword [esp + 0x10]
fst dword [esp + 0xc]
fst dword [esp + 8]
fstp dword [esp + 4]
fstp dword [esp]
call fcn.0046ea08
fld1
sub esp, 0x40
fst dword [esp + 0x3c]
fldz
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fxch st(1)
fstp dword [esp + 0x28]
fst dword [esp + 0x24]
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
fst dword [esp + 0x18]
fld dword [esp + 0x74]
fstp dword [esp + 0x14]
fld dword [esp + 0x70]
fchs
fstp dword [esp + 0x10]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x70]
fstp dword [esp + 4]
fld dword [esp + 0x74]
lea eax, [esp + 0x28c]
fstp dword [esp]
call fcn.0046ea08
fld1
sub esp, 0x40
fst dword [esp + 0x3c]
fldz
lea eax, [esp + 0x2cc]
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fld dword [esp + 0x54]
fstp dword [esp + 0x28]
fst dword [esp + 0x24]
fld dword [esp + 0x78]
fchs
fstp dword [esp + 0x20]
fst dword [esp + 0x1c]
fst dword [esp + 0x18]
fxch st(1)
fstp dword [esp + 0x14]
fst dword [esp + 0x10]
fst dword [esp + 0xc]
fld dword [esp + 0x78]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [esp + 0x54]
fstp dword [esp]
call fcn.0046ea08
fld1
mov eax, dword [esp + 0x6c]
fst dword [esp + 0x10c]
fldz
fst dword [esp + 0x110]
fst dword [esp + 0x114]
fst dword [esp + 0x118]
fst dword [esp + 0x11c]
fst dword [esp + 0x124]
fst dword [esp + 0x128]
fst dword [esp + 0x12c]
fst dword [esp + 0x130]
fstp dword [esp + 0x138]
fst dword [esp + 0x120]
fstp dword [esp + 0x134]
fild dword [eax]
mov eax, esi
fmul qword [0x6a15d8]
fstp dword [esp + 0x18]
fild dword [esp + 0x40]
fadd qword [0x6a15e8]
fstp qword [esp + 0x154]
call fcn.004485e0
fmul dword [esp + 0x3c]
and esi, ebx
lea eax, [esp + 0x10c]
push eax
fmul dword [esp + 0x1c]
lea eax, [esp + 0x290]
push eax
lea eax, [esp + 0x254]
fstp dword [esp + 0x1c]
push eax
fld dword [esp + 0x20]
lea eax, [esp + 0x2d8]
fadd qword [esp + 0x160]
fstp dword [esp + 0x148]
fild dword [esi*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [esp + 0x48]
fmul dword [esp + 0x24]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fadd qword [esp + 0x168]
fstp dword [esp + 0x14c]
fldz
fstp dword [esp + 0x150]
fld1
fstp dword [esp + 0x154]
push eax
lea eax, [esp + 0x35c]
lea edx, [esp + 0xdc]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x318]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x394]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x1c8]
call fcn.004044d0
push 0x4bd575
push 3
push 0x1c
lea eax, [esp + 0x80]
push eax
call fcn.0041b490
fldz
fst dword [esp + 0x1a8]
lea eax, [esp + 0x1c4]
fst dword [esp + 0x1ac]
push eax
lea edi, [esp + 0x220]
fstp dword [esp + 0x1b4]
lea esi, [esp + 0x1ac]
call fcn.004bd529
fld dword [eax]
fstp dword [esp + 0x74]
lea edi, [esp + 0x234]
fld dword [eax + 4]
or dword [esp + 0x84], 0xffffffff
fstp dword [esp + 0x78]
lea eax, [esp + 0x1c4]
fld1
push eax
fstp dword [esp + 0x84]
lea esi, [esp + 0x194]
fldz
fst dword [esp + 0x80]
fld dword [esp + 0x60]
fstp dword [esp + 0x8c]
fld dword [esp + 0x5c]
fstp dword [esp + 0x90]
fld dword [esp + 0x68]
fstp dword [esp + 0x194]
fst dword [esp + 0x198]
fstp dword [esp + 0x19c]
call fcn.004bd529
fld dword [eax]
lea edi, [esp + 0x210]
fstp dword [esp + 0x90]
lea esi, [esp + 0x184]
fld dword [eax + 4]
or dword [esp + 0xa0], 0xffffffff
fstp dword [esp + 0x94]
lea eax, [esp + 0x1c4]
fld1
push eax
fstp dword [esp + 0xa0]
fldz
fst dword [esp + 0x9c]
fld dword [esp + 0x2c]
fstp dword [esp + 0xa8]
fld dword [esp + 0x5c]
fstp dword [esp + 0xac]
fst dword [esp + 0x188]
fld dword [esp + 0x58]
fstp dword [esp + 0x18c]
fstp dword [esp + 0x190]
call fcn.004bd529
fld dword [eax]
fstp dword [esp + 0xac]
fld dword [eax + 4]
or dword [esp + 0xbc], 0xffffffff
fstp dword [esp + 0xb0]
fld1
fstp dword [esp + 0xb8]
fldz
fstp dword [esp + 0xb4]
fld dword [esp + 0x5c]
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx]
fstp dword [esp + 0xc0]
fld dword [esp + 0x1c]
push 1
push 5
fstp dword [esp + 0xcc]
push 0x144
push 0x1c
lea edx, [esp + 0x84]
push edx
call dword [eax + 0x64]
lea edx, [esp + 0x3cc]
call fcn.0049b44d
mov esi, eax
and esi, 0x7ff
call fcn.0049b44d
mov edi, eax
and edi, ebx
call fcn.0049b44d
and eax, ebx
mov dword [esp + 0x24], eax
mov eax, esi
imul eax, dword [ebp + 0x10]
cdq
mov esi, 0x3ff
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x34]
call fcn.004485e0
mov eax, edi
fstp dword [esp + 0x30]
imul eax, dword [ebp + 0x10]
cdq
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x14]
call fcn.004485e0
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x38]
imul eax, dword [ebp + 0x10]
cdq
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x24]
call fcn.004485e0
lea edx, [esp + 0x3cc]
fstp dword [esp + 0x18]
call fcn.0049b44d
fld1
fst dword [esp + 0x10c]
mov esi, eax
fldz
and esi, ebx
fst dword [esp + 0x110]
fst dword [esp + 0x114]
fst dword [esp + 0x118]
fst dword [esp + 0x11c]
fst dword [esp + 0x124]
fst dword [esp + 0x128]
fst dword [esp + 0x12c]
fst dword [esp + 0x130]
fst dword [esp + 0x138]
fxch st(1)
fst dword [esp + 0x120]
fst dword [esp + 0x134]
sub esp, 0x40
fld dword [0x6a23c0]
lea eax, [esp + 0x2cc]
fst dword [esp + 0x17c]
fstp dword [esp + 0x180]
fxch st(1)
fst dword [esp + 0x184]
fxch st(1)
fst dword [esp + 0x188]
fst dword [esp + 0x3c]
fxch st(1)
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fld dword [esp + 0x78]
fstp dword [esp + 0x28]
fld dword [esp + 0x54]
fchs
fstp dword [esp + 0x24]
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
fld dword [esp + 0x54]
fstp dword [esp + 0x18]
fld dword [esp + 0x78]
fstp dword [esp + 0x14]
fst dword [esp + 0x10]
fst dword [esp + 0xc]
fst dword [esp + 8]
fstp dword [esp + 4]
fstp dword [esp]
call fcn.0046ea08
fld1
sub esp, 0x40
fst dword [esp + 0x3c]
lea eax, [esp + 0x28c]
fldz
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fxch st(1)
fstp dword [esp + 0x28]
fst dword [esp + 0x24]
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
fst dword [esp + 0x18]
fld dword [esp + 0x70]
fstp dword [esp + 0x14]
fld dword [esp + 0x74]
fchs
fstp dword [esp + 0x10]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x74]
fstp dword [esp + 4]
fld dword [esp + 0x70]
fstp dword [esp]
call fcn.0046ea08
fld1
sub esp, 0x40
fst dword [esp + 0x3c]
fldz
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fld dword [esp + 0x58]
fstp dword [esp + 0x28]
fst dword [esp + 0x24]
fld dword [esp + 0x64]
fchs
fstp dword [esp + 0x20]
fst dword [esp + 0x1c]
fst dword [esp + 0x18]
fxch st(1)
fstp dword [esp + 0x14]
fst dword [esp + 0x10]
fst dword [esp + 0xc]
fld dword [esp + 0x64]
fstp dword [esp + 8]
lea eax, [esp + 0x30c]
fstp dword [esp + 4]
fld dword [esp + 0x58]
fstp dword [esp]
call fcn.0046ea08
fld1
mov eax, dword [esp + 0x6c]
fst dword [esp + 0xcc]
fldz
fst dword [esp + 0xd0]
fst dword [esp + 0xd4]
fst dword [esp + 0xd8]
fst dword [esp + 0xdc]
fst dword [esp + 0xe4]
fst dword [esp + 0xe8]
fst dword [esp + 0xec]
fst dword [esp + 0xf0]
fstp dword [esp + 0xf8]
fst dword [esp + 0xe0]
fstp dword [esp + 0xf4]
fild dword [eax]
mov eax, esi
fmul qword [0x6a15d8]
fstp dword [esp + 0x18]
call fcn.004485e0
fmul dword [esp + 0x3c]
and esi, ebx
lea eax, [esp + 0xcc]
push eax
fmul dword [esp + 0x1c]
lea eax, [esp + 0x2d0]
push eax
lea eax, [esp + 0x254]
fstp dword [esp + 0x1c]
push eax
fld dword [esp + 0x20]
lea eax, [esp + 0x298]
fadd qword [esp + 0x160]
push eax
lea eax, [esp + 0x39c]
lea edx, [esp + 0x11c]
fstp dword [esp + 0x10c]
fild dword [esi*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul dword [esp + 0x4c]
fmul dword [esp + 0x28]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fadd qword [esp + 0x16c]
fstp dword [esp + 0x110]
fldz
fstp dword [esp + 0x114]
fld1
fstp dword [esp + 0x118]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x318]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x354]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x1c8]
call fcn.004044d0
push 0x4bd575
push 3
push 0x1c
lea eax, [esp + 0x80]
push eax
call fcn.0041b490
fld dword [esp + 0x64]
fstp dword [esp + 0x19c]
lea eax, [esp + 0x1c4]
fldz
push eax
fst dword [esp + 0x1a4]
lea edi, [esp + 0x22c]
fstp dword [esp + 0x1a8]
lea esi, [esp + 0x1a0]
call fcn.004bd529
fld dword [eax]
fstp dword [esp + 0x74]
lea edi, [esp + 0x204]
fld dword [eax + 4]
or dword [esp + 0x84], 0xffffffff
fstp dword [esp + 0x78]
lea eax, [esp + 0x1c4]
fld1
push eax
fstp dword [esp + 0x84]
lea esi, [esp + 0x170]
fldz
fst dword [esp + 0x80]
fld dword [esp + 0x2c]
fstp dword [esp + 0x8c]
fld dword [esp + 0x5c]
fstp dword [esp + 0x90]
fst dword [esp + 0x170]
fld dword [esp + 0x58]
fstp dword [esp + 0x174]
fstp dword [esp + 0x178]
call fcn.004bd529
fld dword [eax]
lea edi, [esp + 0x240]
fstp dword [esp + 0xac]
lea esi, [esp + 0x178]
fld dword [eax + 4]
or dword [esp + 0xbc], 0xffffffff
fstp dword [esp + 0xb0]
lea eax, [esp + 0x1c4]
fld1
push eax
fstp dword [esp + 0xbc]
fldz
fst dword [esp + 0xb8]
fld dword [esp + 0x60]
fstp dword [esp + 0xc4]
fld dword [esp + 0x20]
fstp dword [esp + 0xc8]
fld dword [esp + 0x68]
fstp dword [esp + 0x17c]
fld dword [esp + 0x58]
fstp dword [esp + 0x180]
fstp dword [esp + 0x184]
call fcn.004bd529
fld dword [eax]
mov ecx, dword [esp + 0x70]
fstp dword [esp + 0x90]
push 1
fld dword [eax + 4]
mov eax, dword [ecx]
or dword [esp + 0xa4], 0xffffffff
fstp dword [esp + 0x98]
fld1
push 5
fstp dword [esp + 0xa4]
push 0x144
fldz
push 0x1c
fstp dword [esp + 0xa8]
lea edx, [esp + 0x84]
fld dword [esp + 0x38]
push edx
fstp dword [esp + 0xb8]
fld dword [esp + 0x30]
fstp dword [esp + 0xbc]
call dword [eax + 0x64]
mov edi, dword [esp + 0x20]
cmp edi, dword [esp + 0x1b4]
mov dword [esp + 0x1c], edi
jl 0x5d52ac
xor edi, edi
inc dword [esp + 0x60]
mov dword [esp + 0x1c], edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x4c]
add dword [esp + 0x40], 0x40
add ecx, eax
cmp dword [esp + 0x40], ecx
jl 0x5d4783
push dword [esp + 0x48]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
add dword [esp + 0x30], 0x40
push 0
call dword [eax + 0x28]
lea ecx, [eax + 8]
mov eax, dword [ecx]
lea edx, [esp + 0x1bc]
push edx
call dword [eax + 0x10]
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 4]
jl 0x5d52f9
and dword [esp + 0x2c], 0
inc dword [esp + 0x48]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x50]
add dword [esp + 0x44], 0x40
add ecx, eax
cmp dword [esp + 0x44], ecx
jl 0x5d470b
mov ecx, dword [ebp + 8]
push 3
pop edi
call fcn.0046fcab
jmp 0x5d4685
xor al, al
mov ecx, dword [esp + 0xd98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c