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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
cmp dword [esi + 8], 1
jle 0x4cee30
push 0x48
call fcn.0051af44
add esp, 4
test eax, eax
je 0x4cea42
mov ecx, eax
call fcn.004cddb0
mov ebx, eax
jmp 0x4cea44
xor ebx, ebx
mov dword [ebx + 0x10], 0
mov ecx, dword [esi + 8]
dec ecx
js 0x4ceaa9
mov edi, dword [esi + 4]
fld qword [ebp + 8]
fmul qword [0x531170]
lea edx, [edi + ecx*4]
mov eax, dword [edx]
fld qword [eax + 0x188]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x4cea7d
dec ecx
sub edx, 4
test ecx, ecx
jge 0x4cea60
fstp st(0)
jmp 0x4ceaa9
mov edx, dword [edi + ecx*4]
mov dword [ebx + 0x10], edx
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
sub eax, ecx
dec eax
fstp st(0)
lea edi, [edx + ecx*4]
je 0x4ceaa6
shl eax, 2
lea ecx, [edx + ecx*4 + 4]
push eax
push ecx
push edi
nop
call fcn.0061f568
add esp, 0xc
dec dword [esi + 8]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4cee24
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x50]
push ecx
push edx
add eax, 0xc
push edi
push eax
call fcn.004ce660
lea ecx, [esp + 0x54]
lea edx, [esp + 0x64]
lea eax, [edi + 0x10]
push ecx
push edx
push eax
mov eax, dword [ebx + 0x10]
add eax, 0xc
push eax
call fcn.004ce720
lea ecx, [esp + 0x68]
lea edx, [esp + 0x78]
lea eax, [edi + 0x20]
push ecx
push edx
push eax
mov eax, dword [ebx + 0x10]
add eax, 0xc
push eax
call fcn.004ce7e0
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x8c]
add edi, 0x30
push ecx
push edx
add eax, 0xc
push edi
push eax
call fcn.004ce8b0
mov ecx, dword [0x53b178]
mov edx, dword [0x53b17c]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x14], 0
mov eax, dword [esi + 8]
add esp, 0x40
dec eax
mov byte [esp + 0x13], 0
mov dword [esp + 0x24], eax
js 0x4cee1d
mov ecx, dword [esi + 4]
mov edi, dword [ecx + eax*4]
fld qword [edi + 0x188]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 0x41
je 0x4cee0e
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 0x10]
add edi, 0xc
mov dword [esp + 0x14], 0
push edi
push edx
push eax
call fcn.004cdca0
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebp + 0x10]
push edi
mov esi, eax
push ecx
push edx
mov dword [esp + 0x30], esi
call fcn.004cdd10
add esp, 0x18
cmp eax, esi
jge 0x4ceba9
mov esi, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], esi
mov ecx, dword [ebx + 0x10]
push 1
call fcn.0049a5e0
test al, al
jne 0x4cebd3
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x24]
push 1
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edx*4]
call fcn.0049a5e0
test al, al
je 0x4cecf1
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0x10]
push edi
push eax
lea eax, [ecx + 0x20]
push eax
call fcn.004cdca0
sub eax, 2
add esp, 0xc
cmp eax, esi
jge 0x4cebfd
mov esi, eax
mov dword [esp + 0x14], 6
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x58]
push edi
add eax, 0x20
push edx
push eax
call fcn.004cdd10
sub eax, 2
add esp, 0xc
cmp eax, esi
jge 0x4cec27
mov esi, eax
mov dword [esp + 0x14], 7
mov dword [esp + 0x18], esi
mov ecx, dword [ebx + 0x10]
push 7
call fcn.0049a5e0
test al, al
jne 0x4cec51
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0x24]
push 7
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax*4]
call fcn.0049a5e0
test al, al
je 0x4cecf1
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x44]
push edi
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.004cdca0
add esp, 0xc
cmp eax, esi
jge 0x4cec78
mov esi, eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0x10]
push edi
push eax
lea eax, [ecx + 0x10]
push eax
call fcn.004cdd10
add esp, 0xc
cmp eax, esi
jge 0x4cec9f
mov esi, eax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x4c]
push edi
add eax, 0x30
push edx
push eax
call fcn.004cdca0
sub eax, 4
add esp, 0xc
cmp eax, esi
jge 0x4cecc9
mov esi, eax
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], esi
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x5c]
push edi
push ecx
lea eax, [edx + 0x30]
push eax
call fcn.004cdd10
sub eax, 4
add esp, 0xc
cmp eax, esi
jge 0x4cecf1
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], eax
mov edi, dword [ebp + 0x14]
mov esi, dword [esp + 0x24]
fild dword [esp + 0x18]
mov eax, dword [edi + 4]
fstp qword [esp + 0x28]
mov ecx, dword [eax + esi*4]
call fcn.00498bf0
fstp qword [esp + 0x18]
mov ecx, dword [ebx + 0x10]
call fcn.00498bf0
fadd qword [esp + 0x18]
mov ecx, dword [edi + 4]
fdivr qword [esp + 0x28]
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx + 0x188]
mov eax, dword [ecx + 0x18c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
fstp qword [esp + 0x18]
call fcn.00498bf0
fdivr qword [esp + 0x30]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4cedc7
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 0x188]
mov eax, dword [ecx + 0x18c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call fcn.00498bf0
fdivr qword [esp + 0x38]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4cedc7
mov al, byte [esp + 0x13]
test al, al
je 0x4ced92
fld qword [esp + 0x18]
fcomp qword [ebx + 8]
fnstsw ax
test ah, 1
je 0x4cedc0
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x18]
fld qword [esp + 0x28]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x1c]
fadd qword [0x531170]
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x14]
mov dword [ebx + 8], eax
mov dword [ebx + 0x18], esi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x40], edx
fstp qword [ebx + 0x20]
mov byte [esp + 0x13], 1
jmp 0x4cee0b
mov al, byte [esp + 0x13]
test al, al
jne 0x4cee0b
fld qword [esp + 0x18]
fcomp qword [ebx + 8]
fnstsw ax
test ah, 1
je 0x4cee0b
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x18]
fld qword [esp + 0x28]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x1c]
fadd qword [0x531170]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 8], edx
mov dword [ebx + 0x18], esi
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x40], ecx
fstp qword [ebx + 0x20]
mov esi, dword [ebp + 0x14]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jns 0x4ceb4b
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x4cee39
test ebx, ebx
je 0x4cee30
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.004ce130
mov ecx, dword [ebx + 0x18]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
sub eax, ecx
dec eax
lea edi, [edx + ecx*4]
je 0x4cee64
shl eax, 2
lea ecx, [edx + ecx*4 + 4]
push eax
push ecx
push edi
nop
call fcn.0061f571
add esp, 0xc
mov ecx, dword [esi + 8]
dec ecx
mov dword [esi + 8], ecx
mov edx, dword [0x5ac3b8]
mov esi, edx
cmp esi, edx
mov dword [esp + 0x18], esi
jl 0x4cefb3
mov eax, dword [0x5ac3b4]
inc esi
xor edi, edi
cmp esi, edi
jne 0x4ceeaf
cmp eax, edi
je 0x4cee9e
push eax
call fcn.0051aee4
add esp, 4
mov dword [0x5ac3b4], edi
mov dword [0x5ac3bc], edi
mov dword [0x5ac3b8], edi
jmp 0x4cefb3
cmp eax, edi
jne 0x4ceef0
lea edi, [esi*4]
push edi
call fcn.0051af44
mov edx, eax
mov ecx, edi
mov dword [0x5ac3b4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x5ac3bc], esi
mov dword [0x5ac3b8], esi
jmp 0x4cefb3
mov ecx, dword [0x5ac3bc]
cmp esi, ecx
jg 0x4cef14
cmp esi, edx
jle 0x4cef09
mov ecx, esi
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [0x5ac3b8], esi
jmp 0x4cefb3
mov eax, dword [0x5ac3c0]
cmp eax, edi
jne 0x4cef40
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4cef34
mov eax, 4
jmp 0x4cef40
cmp eax, 0x400
jle 0x4cef40
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x24], eax
jl 0x4cef4e
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
call fcn.0051af44
mov ecx, dword [0x5ac3b8]
mov esi, dword [0x5ac3b4]
mov edx, dword [esp + 0x1c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 1]
mov edx, dword [0x5ac3b8]
mov ecx, esi
mov dword [esp + 0x18], eax
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x5ac3b4]
push eax
call fcn.0051aee4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add esp, 8
mov dword [0x5ac3b4], ecx
mov dword [0x5ac3b8], esi
mov dword [0x5ac3bc], edx
mov eax, dword [0x5ac3b4]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword [eax + ecx*4], ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret