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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x570df8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x59ad00]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x59ad00]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x18]
fld qword [0x57b620]
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [ebp + 0x1c]
mov dword [edx], 0xffffffff
fst qword [ecx]
fstp qword [ecx + 8]
mov dword [esp + 0x38], ecx
fld qword [0x57b628]
mov dword [esp + 0x1c], esi
fstp qword [edi]
mov ecx, dword [esi + 0x130]
sub ecx, dword [esi + 0x12c]
mov dword [esp + 0x34], eax
sar ecx, 2
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], edi
cmp ecx, 1
jb 0x40c46f
fld qword [eax + 8]
xor ebx, ebx
fld qword [eax]
mov dword [esp + 0x20], ebx
fld qword [eax + 8]
mov dword [esp + 0x24], ebx
fld qword [eax]
mov dword [esp + 0x28], ebx
fld qword [ebp + 0x10]
fsub st(1), st(0)
fsub st(2), st(0)
fadd st(3), st(0)
faddp st(4)
fld qword [0x57b8e0]
fsub st(1), st(0)
fxch st(1)
fstp qword [esp + 0x4c]
fadd st(2), st(0)
fxch st(2)
fstp qword [esp + 0x5c]
fsub st(1)
fstp qword [esp + 0x54]
faddp st(1)
fstp qword [esp + 0x64]
lea ecx, [esi + 0x128]
mov dword [esp + 0x80], ebx
call fcn.004037e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x144], ebx
cmp eax, ecx
je 0x40c43b
push ebx
push ecx
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x24], edx
mov eax, dword [esi + 0x13c]
push ebx
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esi + 0x128]
call fcn.00408720
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x24]
jne 0x40c476
cmp ecx, ebx
je 0x40c46f
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x40c52b
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], ecx
lea esp, [esp]
mov eax, dword [ecx]
mov ebx, dword [eax + 0x20]
mov ecx, dword [esi + 0x80]
mov edx, dword [ebp + 8]
cmp dword [ecx + ebx*4], edx
jne 0x40c4fd
mov esi, dword [esi + 0x60]
mov ecx, dword [esp + 0x34]
mov eax, ebx
shl eax, 4
add esi, eax
lea eax, [esi + 0x10]
push eax
lea edi, [esp + 0x40]
call fcn.004046c0
mov ecx, dword [esp + 0x34]
fcom qword [ecx]
mov esi, dword [esp + 0x20]
add esp, 4
fnstsw ax
test ah, 5
jp 0x40c4fb
mov eax, dword [esp + 0x38]
fstp qword [ecx]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [eax], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov dword [edx], ebx
jmp 0x40c4fd
fstp st(0)
mov ecx, dword [esp + 0x14]
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x24]
jne 0x40c490
mov eax, dword [esp + 0x18]
cmp dword [eax], 0
mov eax, dword [esp + 0x20]
setge bl
test eax, eax
je 0x40c529
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret 0x1c