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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
movsx eax, word [ebx + 4]
cmp esi, eax
push edi
mov dword [esp + 0x24], eax
jle 0x4c2dfa
movsx ecx, word [ebx + 8]
cmp esi, ecx
jge 0x4c2dfa
movsx edx, word [ebx + 6]
lea edx, [edx + eax*2 + 2]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x14], edx
fld qword [eax + esi*8 - 8]
fcomp qword [eax + esi*8]
lea ecx, [eax + esi*8]
fnstsw ax
test ah, 0x40
je 0x4c2902
fld qword [ecx - 0x10]
fcomp qword [ecx - 8]
sub ecx, 8
dec esi
fnstsw ax
test ah, 0x40
jne 0x4c28ee
mov dword [ebp + 0xc], esi
push 8
push edx
call fcn.00547150
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x10], edi
je 0x4c2dfa
xor eax, eax
test esi, esi
mov dword [esp + 0x1c], eax
jle 0x4c2948
mov edx, dword [ebx + 0x14]
shl eax, 3
mov ecx, eax
add ecx, edx
mov edx, dword [ecx]
mov dword [eax + edi], edx
mov ecx, dword [ecx + 4]
mov dword [eax + edi + 4], ecx
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, esi
mov dword [esp + 0x1c], eax
jl 0x4c2925
mov ecx, dword [ebx + 0x14]
lea eax, [esi*8]
mov edx, eax
add edx, ecx
mov ecx, dword [edx]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [edx + 4]
mov dword [esp + 0x4c], edx
lea edx, [ecx - 1]
cmp esi, edx
jge 0x4c29a7
mov ecx, 8
add eax, edi
sub ecx, edi
sub edx, esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
jmp 0x4c2987
mov ecx, dword [esp + 0x34]
mov edx, dword [ebx + 0x14]
add ecx, eax
add ecx, edx
add eax, 8
mov edx, dword [ecx]
mov dword [eax - 8], edx
mov ecx, dword [ecx + 4]
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x30]
dec ecx
mov dword [esp + 0x30], ecx
jne 0x4c2983
movsx edx, word [ebx + 8]
push 0x18
push edx
call fcn.00547150
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x4c2dfa
movsx eax, word [ebx + 8]
push 0x18
push eax
mov dword [esp + 0x44], eax
call fcn.00547150
mov edx, eax
add esp, 8
test edx, edx
mov dword [esp + 0x20], edx
je 0x4c2dfa
xor eax, eax
cmp word [ebx + 8], ax
jle 0x4c2a17
xor edx, edx
mov ecx, dword [esp + 0x18]
mov esi, dword [ebx + 0xc]
add esi, edx
inc eax
lea edi, [edx + ecx]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsx ecx, word [ebx + 8]
add edx, 0x18
cmp eax, ecx
jl 0x4c29ed
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
dec esi
mov ecx, esi
mov dword [esp + 0x30], esi
sub ecx, eax
mov dword [esp + 0x34], ecx
js 0x4c2a5b
mov eax, dword [esp + 0x18]
sub eax, edx
inc ecx
mov dword [esp + 0x2c], ecx
lea esi, [eax + edx]
mov ecx, 6
mov edi, edx
add edx, 0x18
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2c]
dec ecx
mov dword [esp + 0x2c], ecx
jne 0x4c2a35
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
inc ecx
cmp ecx, esi
jg 0x4c2b5a
mov edx, dword [esp + 0x20]
lea eax, [ecx + ecx*2]
sub esi, ecx
lea eax, [edx + eax*8]
mov dword [esp + 0x1c], eax
lea eax, [edi + ecx*8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
add eax, ecx
lea edi, [edi + eax*8]
mov eax, dword [esp + 0x18]
sub eax, edx
inc esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], esi
jmp 0x4c2a9d
mov edi, dword [esp + 0x28]
fld qword [edi]
fsub qword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
fld qword [edi]
fsub qword [ecx]
lea esi, [edx - 0x18]
mov ecx, 6
fdivp st(1)
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
fstp qword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
push ecx
push edx
call fcn.00418fa0
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x5c]
push eax
lea edx, [edi + ecx]
lea eax, [esp + 0x78]
push edx
push eax
call fcn.00418e20
fld qword [0x550f30]
fsub qword [esp + 0x58]
mov ecx, 6
lea esi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
fdivr qword [0x550f30]
mov esi, dword [esp + 0x34]
add esp, 0x10
fstp qword [esp]
push esi
call fcn.00418fa0
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, 8
add esp, 0xc
add edi, eax
add edx, eax
mov eax, dword [esp + 0x34]
add esi, 0x18
dec eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], eax
jne 0x4c2a99
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
lea ecx, [esi + esi*2 + 3]
lea eax, [esi + esi*2]
lea ecx, [edx + ecx*8]
mov edx, dword [esp + 0x20]
shl eax, 3
mov dword [esp + 0x28], eax
add eax, edx
push ecx
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
call fcn.00418f70
fcomp qword [ebp + 0x10]
add esp, 8
fnstsw ax
test ah, 1
je 0x4c2dc0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
sub eax, ecx
add eax, 0xfffffffe
cmp esi, eax
jge 0x4c2bde
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x2c], ecx
sub eax, esi
mov edi, dword [esp + 0x2c]
mov ecx, 6
mov esi, edx
add edx, 0x18
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x2c]
add esi, 0x18
dec eax
mov dword [esp + 0x2c], esi
jne 0x4c2bb4
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov eax, ecx
mov dword [esp + 0x1c], esi
cdq
sub eax, edx
mov edx, esi
sar eax, 1
sub edx, eax
lea eax, [edx + 1]
cmp esi, eax
mov dword [esp + 0x38], eax
jl 0x4c2d05
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
add eax, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x28], eax
lea eax, [edi + esi*8]
add edx, 0xffffffe8
add esi, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edx
lea eax, [edi + esi*8]
mov dword [esp + 0x30], eax
jmp 0x4c2c2b
mov eax, dword [esp + 0x30]
fld qword [eax]
fsub qword [esp + 0x48]
fld qword [eax]
mov eax, dword [esp + 0x2c]
fsub qword [eax]
fdivp st(1)
fst qword [esp + 0x40]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
jne 0x4c2d05
fld qword [0x550f30]
mov ecx, dword [esp + 0x24]
sub esp, 8
fsub qword [esp + 0x48]
lea esi, [ecx + 0x18]
mov ecx, 6
lea edi, [esp + 0x58]
lea edx, [esp + 0x58]
fstp qword [esp]
rep movsd dword es:[edi], dword [esi]
push edx
call fcn.00418fa0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0x78]
push ecx
push edx
call fcn.00418e20
fld qword [0x550f30]
fdiv qword [esp + 0x58]
mov eax, dword [esp + 0x3c]
add esp, 0x10
mov ecx, 6
lea esi, [esp + 0x70]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
fstp qword [esp]
push eax
call fcn.00418fa0
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ecx, 8
add esp, 0xc
sub edx, ecx
sub edi, ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
mov ecx, 0x18
dec eax
sub esi, ecx
sub edx, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edx
jge 0x4c2c27
movsx eax, word [ebx + 8]
mov ecx, dword [ebx + 0xc]
push 0x18
push eax
push ecx
call fcn.0054714a
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
push 8
push edx
push eax
call fcn.0054714a
dec word [ebx + 6]
dec word [ebx + 8]
mov ax, word [ebx + 8]
push 0x18
movsx ecx, ax
push ecx
call fcn.00547150
add esp, 0x20
mov dword [ebx + 0xc], eax
test eax, eax
je 0x4c2dfa
xor edx, edx
cmp word [ebx + 8], dx
jle 0x4c2d77
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edi, dword [ebx + 0xc]
add edi, eax
inc edx
lea esi, [eax + ecx]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsx ecx, word [ebx + 8]
add eax, 0x18
cmp edx, ecx
jl 0x4c2d54
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 8
lea esi, [edx - 1]
push esi
call fcn.00547150
add esp, 8
mov dword [ebx + 0x14], eax
test eax, eax
je 0x4c2dfa
xor ecx, ecx
test esi, esi
jle 0x4c2dbc
mov esi, dword [ebx + 0x14]
lea eax, [ecx*8]
mov edx, eax
add edx, esi
mov esi, dword [eax + edi]
inc ecx
mov dword [edx], esi
mov eax, dword [eax + edi + 4]
mov dword [edx + 4], eax
mov edx, dword [esp + 0x14]
lea eax, [edx - 1]
cmp ecx, eax
jl 0x4c2d96
xor ebx, ebx
jmp 0x4c2dc3
or ebx, 0xffffffff
mov eax, dword [esp + 0x14]
push 8
push eax
push edi
call fcn.0054714a
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
push 0x18
push esi
push ecx
call fcn.0054714a
mov edx, dword [esp + 0x38]
push 0x18
push esi
push edx
call fcn.0054714a
add esp, 0x24
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret