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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc0]
push esi
call fcn.004ba230
add esp, 4
test eax, eax
je 0x4c1e1b
push esi
call fcn.004ba1b0
add esp, 4
test eax, eax
jne 0x4c1e1b
mov ebp, dword [0x122f7b8]
lea eax, [esi + esi*2]
shl eax, 4
mov esi, dword [ebp + 0xd4]
xor ebx, ebx
add esi, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], esi
mov ecx, dword [esi + 4]
test ecx, ecx
jle 0x4c1e1b
push edi
mov edx, dword [esi + 8]
mov eax, dword [ebp + 0xcc]
add edx, ebx
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0xc4]
lea edx, [eax + edx*8]
mov dword [esp + 0x30], edx
test byte [edx + 4], 4
je 0x4c1e0a
mov eax, dword [edx + 8]
xor edi, edi
test eax, eax
mov dword [esp + 0x2c], edi
jle 0x4c1e0a
mov eax, dword [edx + 0xc]
mov ebx, dword [ebp + 0xbc]
add eax, edi
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x20], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x38], eax
jle 0x4c1df6
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0xcc]
add ecx, eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp + 0xc4]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov dword [esp + 0x40], edi
lea eax, [edi + edi*2]
lea ecx, [ecx + eax*8]
mov dword [esp + 0x48], ecx
test byte [ecx + 4], 4
jne 0x4c1dd6
mov eax, dword [ecx + 8]
xor esi, esi
test eax, eax
mov dword [esp + 0x44], esi
jle 0x4c1dd6
mov eax, dword [esp + 0x20]
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
mov dword [esp + 0x24], ebx
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0xbc]
add edx, esi
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
cmp ebx, eax
jne 0x4c1dbe
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0xc4]
cmp eax, edx
jne 0x4c19e9
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 0xd4]
lea edx, [eax + eax*2]
shl edx, 4
add ecx, edx
mov edx, dword [ebp + 0xdc]
shl eax, 5
test byte [edx + eax + 4], 1
je 0x4c1ad6
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], esi
jle 0x4c1dd6
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0xcc]
lea edx, [ecx + eax*4]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
je 0x4c1aae
mov edx, dword [ebp + 0xc4]
lea ecx, [eax + eax*2]
mov edi, dword [edx + ecx*8 + 8]
lea ebx, [edx + ecx*8]
xor ecx, ecx
test edi, edi
jle 0x4c1a9e
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp + 0xbc]
lea esi, [esi + eax*4]
mov eax, dword [esi]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x24]
cmp eax, edx
je 0x4c1a7e
inc ecx
add esi, 4
cmp ecx, edi
jl 0x4c1a65
jmp 0x4c1a9e
mov eax, dword [ebx + 4]
test al, 1
jne 0x4c1a8f
mov dword [esp + 0x1c], 1
jmp 0x4c1a9e
not al
movsx eax, al
and eax, 4
shr eax, 2
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x24]
cmp ecx, edi
jl 0x4c1aca
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
inc eax
add edx, 4
cmp eax, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edx
jl 0x4c1a34
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c1dd6
mov ecx, dword [ebp + 0xb4]
mov esi, dword [esp + 0x20]
mov edi, dword [ebp + 0xa4]
lea eax, [ecx + ebx*8]
xor ecx, ecx
test esi, esi
setl cl
mov edx, dword [eax + ecx*4]
lea edx, [edx + edx*2]
lea esi, [edi + edx*4]
xor edx, edx
test ecx, ecx
sete dl
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + edx*4]
lea eax, [eax + eax*2]
fld dword [edi + eax*4]
fsub dword [esi]
lea edi, [edi + eax*4]
mov eax, dword [ecx]
lea ecx, [esp + 0x54]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0xac]
fstp dword [esp + 0x60]
fld dword [edi + 4]
fsub dword [esi + 4]
lea eax, [eax + edx*4]
lea edx, [esp + 0x60]
push ecx
push edx
push eax
fstp dword [esp + 0x70]
fld dword [edi + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x74]
call fcn.0042bf80
lea eax, [esp + 0x60]
push eax
call fcn.0042bd60
fstp st(0)
fld dword [esi]
fadd dword [edi]
push 0xffffffffffffffff
lea eax, [esp + 0x80]
push 4
push eax
fstp dword [esp + 0x2c]
fld dword [esi + 4]
fadd dword [edi + 4]
fstp dword [esp + 0x30]
fld dword [edi + 8]
fadd dword [esi + 8]
fld dword [esp + 0x2c]
fmul qword [0x4e03e8]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul qword [0x4e03e8]
fstp dword [esp + 0x30]
fmul qword [0x4e03e8]
fld dword [esp + 0x70]
fmul dword [0x4e03bc]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x74]
fmul dword [0x4e03bc]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x2c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x78]
fmul dword [0x4e03bc]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x8c], edx
fadd st(1)
fstp dword [esp + 0x34]
fstp st(0)
fld dword [esp + 0x34]
fsub dword [0x4e03c0]
fstp dword [esp + 0x90]
lea edx, [esp + 0xb8]
push ecx
push edx
call fcn.004c3280
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x9c]
add esp, 0x24
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x4c1dd0
lea eax, [esp + 0x80]
push eax
call fcn.004c3040
mov edi, eax
mov eax, dword [esp + 0xc8]
add esp, 4
cmp edi, eax
je 0x4c1dd0
push edi
push eax
call fcn.004ba310
add esp, 8
test eax, eax
jne 0x4c1dd0
push edi
call fcn.004ba230
add esp, 4
test eax, eax
jne 0x4c1c79
push edi
call fcn.004ba1b0
add esp, 4
test eax, eax
je 0x4c1dd0
mov ebp, dword [0x122f7b8]
mov ecx, edi
shl ecx, 5
mov edx, dword [ebp + 0xdc]
test byte [ecx + edx], 2
jne 0x4c1dd6
call fcn.004b9c00
mov esi, eax
test esi, esi
je 0x4c1dd0
mov eax, dword [esp + 0x20]
mov dword [esi], edi
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x14]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x18]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x80]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x84]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x88]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 7
fld dword [esp + 0x18]
fsub dword [esp + 0x88]
fabs
fmul qword [0x4e15a8]
fdiv dword [0x12284a8]
fadd qword [0x4e15a0]
call fcn.004cb970
push edi
mov word [esi + 0x28], ax
call fcn.004ba1b0
add esp, 4
test eax, eax
jne 0x4c1d85
push edi
call fcn.004ba270
add esp, 4
test eax, eax
jne 0x4c1d85
fld dword [esp + 0x18]
fsub dword [esp + 0x88]
push ecx
fstp dword [esp]
call fcn.004ba100
fcomp dword [0x4e1598]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4c1d5b
add word [esi + 0x28], 0x190
jmp 0x4c1d85
fld dword [esp + 0x18]
fsub dword [esp + 0x88]
push ecx
fstp dword [esp]
call fcn.004ba100
fcomp dword [0x4e1520]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4c1d85
add word [esi + 0x28], 0x384
mov ecx, dword [0x1228434]
mov eax, dword [esp + 0xc4]
mov edi, dword [esp + 0x40]
mov edx, dword [ecx + eax*4]
mov dword [esi + 0x2c], edx
mov ecx, dword [0x1228434]
mov dword [ecx + eax*4], esi
mov eax, dword [0x1228484]
mov ebp, dword [0x122f7b8]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
inc eax
mov dword [0x1228484], eax
mov eax, dword [ecx + 8]
inc esi
cmp esi, eax
mov dword [esp + 0x44], esi
jl 0x4c19bd
jmp 0x4c1dd6
mov ebp, dword [0x122f7b8]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
inc eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x38], eax
cmp eax, ecx
jl 0x4c196a
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov eax, dword [edx + 8]
inc edi
cmp edi, eax
mov dword [esp + 0x2c], edi
jl 0x4c194a
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esi + 4]
inc ebx
cmp ebx, ecx
mov dword [esp + 0x3c], ebx
jl 0x4c190c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret