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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61d549
mov eax, dword fs:[0]
push eax
sub esp, 0xd98
push ebx
push esi
push edi
mov eax, dword [0x67e034]
xor eax, esp
push eax
lea eax, [esp + 0xda8]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4ed3d0
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x4ed3d0
mov edx, dword [ebp + 0x10]
cmp edx, ebx
jg 0x4ec6df
mov al, 1
jmp 0x4ed3d2
cmp edx, 0x3ff
jl 0x4ec6fe
fldz
mov eax, dword [ecx]
push 0xffffffffffffffff
push ecx
push ecx
fst dword [esp + 4]
fstp dword [esp]
call dword [eax + 0x74]
jmp 0x4ed3d2
mov eax, edx
sar eax, 2
mov dword [esp + 0x160], eax
mov eax, 0x400
sub eax, edx
lea edx, [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
lea esi, [esp + 0x3dc]
call fcn.004c5c33
mov eax, 0x7d8f
mov edx, esi
mov dword [esp + 0xdb0], ebx
call fcn.004c5d8c
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
imul eax, eax
imul ecx, ecx
add eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], ebx
fild dword [esp + 0x20]
call fcn.006146a0
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov ecx, dword [ebp + 8]
xor edi, edi
fstp dword [esp + 0x4c]
inc edi
call fcn.0045e475
cmp dword [esp + 0x58], ebx
mov dword [esp + 0x44], ebx
jle 0x4ed3c0
mov ebx, 0x1ff
xor edi, edi
cmp dword [esp + 0x54], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x48], edi
jle 0x4ed37a
mov eax, dword [esp + 0x30]
fild dword [esp + 0x30]
add eax, 0x40
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x158]
fild dword [esp + 0x20]
sar eax, 3
and eax, ebx
lea eax, [eax*4 + 0x69d030]
fstp dword [esp + 0x15c]
mov dword [esp + 0x74], eax
fldz
mov eax, dword [esp + 0x160]
fadd qword [0x657608]
shl eax, 0x18
or eax, 0xffffff
mov dword [esp + 0x34], eax
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fstp dword [esp + 0x60]
fild dword [esp + 0x44]
fadd qword [0x657600]
fstp qword [esp + 0x16c]
push dword [esp + 0x50]
mov ecx, dword [ebp + 0xc]
push dword [esp + 0x68]
mov eax, dword [ecx]
call dword [eax + 0x28]
lea esi, [eax + 8]
lea ecx, [esp + 0x1c4]
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 + 0x174]
push ecx
mov ecx, esi
call dword [eax + 0x9c]
fild dword [esp + 0x174]
add edi, 0x40
mov dword [esp + 0x20], edi
fstp dword [esp + 0x2c]
lea edx, [esp + 0x3dc]
fild dword [esp + 0x1c]
fdiv dword [esp + 0x2c]
fstp dword [esp + 0x5c]
fild dword [esp + 0x178]
fstp dword [esp + 0x1c]
fld dword [esp + 0x158]
fdiv dword [esp + 0x1c]
fstp dword [esp + 0x68]
fild dword [esp + 0x20]
fdiv dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x15c]
fdiv dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x78]
fstp dword [esp + 0x6c]
call fcn.004c5c6d
mov esi, eax
and esi, 0x7ff
call fcn.004c5c6d
mov edi, eax
and edi, ebx
call fcn.004c5c6d
and eax, ebx
mov dword [esp + 0x14], eax
mov eax, esi
imul eax, dword [esp + 0x24]
cdq
mov esi, 0x3ff
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x69d030]
fmul qword [0x657548]
fstp dword [esp + 0x40]
call fcn.004549b0
mov eax, edi
fstp dword [esp + 0x38]
imul eax, dword [esp + 0x24]
cdq
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x69d030]
fmul qword [0x657548]
fstp dword [esp + 0x18]
call fcn.004549b0
mov eax, dword [esp + 0x14]
fstp dword [esp + 0x28]
imul eax, dword [esp + 0x24]
cdq
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x69d030]
fmul qword [0x657548]
fstp dword [esp + 0x3c]
call fcn.004549b0
lea edx, [esp + 0x3dc]
fstp dword [esp + 0x14]
call fcn.004c5c6d
fld1
fst dword [esp + 0xd4]
sub esp, 0x40
fldz
mov esi, eax
fst dword [esp + 0x118]
lea eax, [esp + 0x31c]
fst dword [esp + 0x11c]
and esi, ebx
fst dword [esp + 0x120]
fst dword [esp + 0x124]
fst dword [esp + 0x12c]
fst dword [esp + 0x130]
fst dword [esp + 0x134]
fst dword [esp + 0x138]
fst dword [esp + 0x140]
fxch st(1)
fst dword [esp + 0x128]
fst dword [esp + 0x13c]
fld dword [0x657ca8]
fst dword [esp + 0x144]
fstp dword [esp + 0x148]
fxch st(1)
fst dword [esp + 0x14c]
fxch st(1)
fst dword [esp + 0x150]
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 + 0x68]
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 + 0x68]
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.0045c0c0
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 + 0x78]
fstp dword [esp + 0x14]
fld dword [esp + 0x80]
fchs
fstp dword [esp + 0x10]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x80]
fstp dword [esp + 4]
fld dword [esp + 0x78]
lea eax, [esp + 0x2dc]
fstp dword [esp]
call fcn.0045c0c0
fld1
sub esp, 0x40
fst dword [esp + 0x3c]
fldz
lea eax, [esp + 0x29c]
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 + 0x7c]
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 + 0x7c]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [esp + 0x54]
fstp dword [esp]
call fcn.0045c0c0
fld1
mov eax, dword [esp + 0x74]
fst dword [esp + 0x114]
fldz
fst dword [esp + 0x118]
fst dword [esp + 0x11c]
fst dword [esp + 0x120]
fst dword [esp + 0x124]
fst dword [esp + 0x12c]
fst dword [esp + 0x130]
fst dword [esp + 0x134]
fst dword [esp + 0x138]
fstp dword [esp + 0x140]
fst dword [esp + 0x128]
fstp dword [esp + 0x13c]
fild dword [eax]
mov eax, esi
fmul qword [0x657548]
fstp dword [esp + 0x18]
fild dword [esp + 0x48]
fadd qword [0x657600]
fstp qword [esp + 0x164]
call fcn.004549b0
fmul dword [esp + 0x4c]
and esi, ebx
lea eax, [esp + 0x114]
push eax
fmul dword [esp + 0x1c]
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x2a4]
fstp dword [esp + 0x1c]
push eax
fld dword [esp + 0x20]
lea eax, [esp + 0x2e8]
fadd qword [esp + 0x170]
fstp dword [esp + 0x150]
fild dword [esi*4 + 0x69d030]
fmul qword [0x657548]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [esp + 0x58]
fmul dword [esp + 0x24]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fadd qword [esp + 0x178]
fstp dword [esp + 0x154]
fldz
fstp dword [esp + 0x158]
fld1
fstp dword [esp + 0x15c]
push eax
lea eax, [esp + 0x36c]
lea edx, [esp + 0xe4]
call fcn.00401200
mov edx, eax
lea eax, [esp + 0x328]
call fcn.00401200
mov edx, eax
lea eax, [esp + 0x3a4]
call fcn.00401200
mov edx, eax
lea eax, [esp + 0x1d8]
call fcn.00401200
push 0x498f5b
push 3
push 0x1c
lea eax, [esp + 0x88]
push eax
call fcn.0043c160
fldz
fst dword [esp + 0x1ac]
lea eax, [esp + 0x1d4]
fst dword [esp + 0x1b0]
push eax
lea edi, [esp + 0x218]
fstp dword [esp + 0x1b8]
lea esi, [esp + 0x1b0]
call fcn.00498f0f
fld dword [eax]
fstp dword [esp + 0x7c]
lea edi, [esp + 0x220]
fld dword [eax + 4]
mov eax, dword [esp + 0x34]
fstp dword [esp + 0x80]
mov dword [esp + 0x8c], eax
fld1
lea eax, [esp + 0x1d4]
fstp dword [esp + 0x88]
push eax
fldz
lea esi, [esp + 0x1a4]
fst dword [esp + 0x88]
fld dword [esp + 0x60]
fstp dword [esp + 0x94]
fld dword [esp + 0x6c]
fstp dword [esp + 0x98]
fld dword [esp + 0x70]
fstp dword [esp + 0x1a4]
fst dword [esp + 0x1a8]
fstp dword [esp + 0x1ac]
call fcn.00498f0f
fld dword [eax]
lea edi, [esp + 0x244]
fstp dword [esp + 0x98]
lea esi, [esp + 0x1b8]
fld dword [eax + 4]
mov eax, dword [esp + 0x34]
fstp dword [esp + 0x9c]
mov dword [esp + 0xa8], eax
fld1
lea eax, [esp + 0x1d4]
fstp dword [esp + 0xa4]
push eax
fldz
fst dword [esp + 0xa4]
fld dword [esp + 0x30]
fstp dword [esp + 0xb0]
fld dword [esp + 0x6c]
fstp dword [esp + 0xb4]
fst dword [esp + 0x1bc]
fld dword [esp + 0x64]
fstp dword [esp + 0x1c0]
fstp dword [esp + 0x1c4]
call fcn.00498f0f
fld dword [eax]
fstp dword [esp + 0xb4]
fld dword [eax + 4]
fstp dword [esp + 0xb8]
fld1
fstp dword [esp + 0xc0]
fldz
mov eax, dword [esp + 0x34]
fstp dword [esp + 0xbc]
fld dword [esp + 0x5c]
mov ecx, dword [esp + 0x70]
push 1
fstp dword [esp + 0xcc]
fld dword [esp + 0x20]
push 5
push 0x144
fstp dword [esp + 0xd8]
push 0x1c
lea edx, [esp + 0x8c]
mov dword [esp + 0xd4], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x54]
lea edx, [esp + 0x3dc]
call fcn.004c5c6d
mov esi, eax
and esi, 0x7ff
call fcn.004c5c6d
mov edi, eax
and edi, ebx
call fcn.004c5c6d
and eax, ebx
mov dword [esp + 0x28], eax
mov eax, esi
imul eax, dword [esp + 0x24]
cdq
mov esi, 0x3ff
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x69d030]
fmul qword [0x657548]
fstp dword [esp + 0x38]
call fcn.004549b0
mov eax, edi
fstp dword [esp + 0x40]
imul eax, dword [esp + 0x24]
cdq
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x69d030]
fmul qword [0x657548]
fstp dword [esp + 0x14]
call fcn.004549b0
mov eax, dword [esp + 0x28]
fstp dword [esp + 0x3c]
imul eax, dword [esp + 0x24]
cdq
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x69d030]
fmul qword [0x657548]
fstp dword [esp + 0x28]
call fcn.004549b0
lea edx, [esp + 0x3dc]
fstp dword [esp + 0x18]
call fcn.004c5c6d
fld1
fst dword [esp + 0x114]
mov esi, eax
fldz
and esi, ebx
fst dword [esp + 0x118]
fst dword [esp + 0x11c]
fst dword [esp + 0x120]
fst dword [esp + 0x124]
fst dword [esp + 0x12c]
fst dword [esp + 0x130]
fst dword [esp + 0x134]
fst dword [esp + 0x138]
fst dword [esp + 0x140]
sub esp, 0x40
fxch st(1)
lea eax, [esp + 0x29c]
fst dword [esp + 0x168]
fst dword [esp + 0x17c]
fld dword [0x657ca8]
fst dword [esp + 0x184]
fstp dword [esp + 0x188]
fxch st(1)
fst dword [esp + 0x18c]
fxch st(1)
fst dword [esp + 0x190]
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 + 0x7c]
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 + 0x7c]
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.0045c0c0
fld1
sub esp, 0x40
fst dword [esp + 0x3c]
lea eax, [esp + 0x2dc]
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 + 0x80]
fstp dword [esp + 0x14]
fld dword [esp + 0x78]
fchs
fstp dword [esp + 0x10]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x78]
fstp dword [esp + 4]
fld dword [esp + 0x80]
fstp dword [esp]
call fcn.0045c0c0
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 + 0x68]
fchs
fstp dword [esp + 0x20]
fst dword [esp + 0x1c]
fst dword [esp + 0x18]
fxch st(1)
fstp dword [esp + 0x14]
fst dword [esp + 0x10]
lea eax, [esp + 0x31c]
fst dword [esp + 0xc]
fld dword [esp + 0x68]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [esp + 0x58]
fstp dword [esp]
call fcn.0045c0c0
fld1
mov eax, dword [esp + 0x74]
fst dword [esp + 0xd4]
fldz
fst dword [esp + 0xd8]
fst dword [esp + 0xdc]
fst dword [esp + 0xe0]
fst dword [esp + 0xe4]
fst dword [esp + 0xec]
fst dword [esp + 0xf0]
fst dword [esp + 0xf4]
fst dword [esp + 0xf8]
fstp dword [esp + 0x100]
fst dword [esp + 0xe8]
fstp dword [esp + 0xfc]
fild dword [eax]
mov eax, esi
fmul qword [0x657548]
fstp dword [esp + 0x18]
call fcn.004549b0
fmul dword [esp + 0x4c]
and esi, ebx
lea eax, [esp + 0xd4]
push eax
fmul dword [esp + 0x1c]
lea eax, [esp + 0x2e0]
push eax
lea eax, [esp + 0x2a4]
fstp dword [esp + 0x1c]
push eax
fld dword [esp + 0x20]
lea eax, [esp + 0x268]
fadd qword [esp + 0x170]
push eax
lea eax, [esp + 0x3ac]
lea edx, [esp + 0x124]
fstp dword [esp + 0x114]
fild dword [esi*4 + 0x69d030]
fmul qword [0x657548]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul dword [esp + 0x5c]
fmul dword [esp + 0x28]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fadd qword [esp + 0x17c]
fstp dword [esp + 0x118]
fldz
fstp dword [esp + 0x11c]
fld1
fstp dword [esp + 0x120]
call fcn.00401200
mov edx, eax
lea eax, [esp + 0x328]
call fcn.00401200
mov edx, eax
lea eax, [esp + 0x364]
call fcn.00401200
mov edx, eax
lea eax, [esp + 0x1d8]
call fcn.00401200
push 0x498f5b
push 3
push 0x1c
lea eax, [esp + 0x88]
push eax
call fcn.0043c160
fld dword [esp + 0x6c]
fstp dword [esp + 0x17c]
fldz
fst dword [esp + 0x180]
fstp dword [esp + 0x184]
lea eax, [esp + 0x1d4]
push eax
lea edi, [esp + 0x254]
lea esi, [esp + 0x180]
call fcn.00498f0f
fld dword [eax]
fstp dword [esp + 0x7c]
lea edi, [esp + 0x238]
fld dword [eax + 4]
mov eax, dword [esp + 0x34]
fstp dword [esp + 0x80]
mov dword [esp + 0x8c], eax
fld1
lea eax, [esp + 0x1d4]
fstp dword [esp + 0x88]
push eax
fldz
lea esi, [esp + 0x18c]
fst dword [esp + 0x88]
fld dword [esp + 0x30]
fstp dword [esp + 0x94]
fld dword [esp + 0x6c]
fstp dword [esp + 0x98]
fst dword [esp + 0x18c]
fld dword [esp + 0x64]
fstp dword [esp + 0x190]
fstp dword [esp + 0x194]
call fcn.00498f0f
fld dword [eax]
lea edi, [esp + 0x22c]
fstp dword [esp + 0xb4]
lea esi, [esp + 0x194]
fld dword [eax + 4]
mov eax, dword [esp + 0x34]
fstp dword [esp + 0xb8]
mov dword [esp + 0xc4], eax
fld1
lea eax, [esp + 0x1d4]
fstp dword [esp + 0xc0]
push eax
fldz
fst dword [esp + 0xc0]
fld dword [esp + 0x60]
fstp dword [esp + 0xcc]
fld dword [esp + 0x20]
fstp dword [esp + 0xd0]
fld dword [esp + 0x70]
fstp dword [esp + 0x198]
fld dword [esp + 0x64]
fstp dword [esp + 0x19c]
fstp dword [esp + 0x1a0]
call fcn.00498f0f
fld dword [eax]
mov ecx, dword [esp + 0x70]
fstp dword [esp + 0x98]
push 1
fld dword [eax + 4]
mov eax, dword [esp + 0x38]
fstp dword [esp + 0xa0]
push 5
fld1
push 0x144
fstp dword [esp + 0xb0]
push 0x1c
fldz
lea edx, [esp + 0x8c]
fstp dword [esp + 0xb0]
mov dword [esp + 0xb8], eax
fld dword [esp + 0x3c]
mov eax, dword [ecx]
fstp dword [esp + 0xbc]
push edx
fld dword [esp + 0x30]
fstp dword [esp + 0xc4]
call dword [eax + 0x54]
mov edi, dword [esp + 0x20]
cmp edi, dword [esp + 0x1c4]
mov dword [esp + 0x1c], edi
jl 0x4ed365
xor edi, edi
inc dword [esp + 0x64]
mov dword [esp + 0x1c], edi
add dword [esp + 0x48], 0x40
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x54]
jl 0x4ec812
xor edi, edi
push dword [esp + 0x50]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
add dword [esp + 0x34], 0x40
push edi
call dword [eax + 0x28]
lea ecx, [eax + 8]
mov eax, dword [ecx]
lea edx, [esp + 0x1cc]
push edx
call dword [eax + 0x10]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 4]
jl 0x4ed3ad
inc dword [esp + 0x50]
mov dword [esp + 0x30], edi
add dword [esp + 0x44], 0x40
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x58]
jl 0x4ec78d
mov ecx, dword [ebp + 8]
push 3
pop edi
call fcn.0045e475
jmp 0x4ec6d8
xor al, al
mov ecx, dword [esp + 0xda8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc