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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x570dc8
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 + 0x10]
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
mov dword [esp + 0x28], ecx
mov dword [edx], 0xffffffff
mov ecx, dword [ebx + 0x130]
sub ecx, dword [ebx + 0x12c]
mov dword [esp + 0x30], eax
sar ecx, 2
mov dword [esp + 0x14], edx
cmp ecx, 1
jb 0x40c2ee
fld qword [eax + 8]
xor edi, edi
fld qword [eax]
mov dword [esp + 0x18], edi
fld qword [eax + 8]
mov dword [esp + 0x1c], edi
fld qword [eax]
mov dword [esp + 0x20], edi
fld qword [0x57b8e0]
fsub st(1), st(0)
fxch st(1)
fstp qword [esp + 0x4c]
fsub st(1), st(0)
fxch st(1)
fstp qword [esp + 0x54]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x5c]
faddp st(1)
fstp qword [esp + 0x64]
lea ecx, [ebx + 0x128]
mov dword [esp + 0x80], edi
call fcn.004037e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x144], edi
cmp eax, ecx
je 0x40c20a
push edi
push ecx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x1c], edx
mov eax, dword [ebx + 0x13c]
push edi
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [ebx + 0x128]
call fcn.00408720
fld qword [0x57b628]
xor eax, eax
fstp qword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
je 0x40c2d7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x20]
mov ecx, dword [ebx + 0x80]
mov ecx, dword [ecx + eax*4]
mov edi, dword [ebx + 0x70]
mov edx, dword [ebx + 0x60]
lea ecx, [edi + ecx*8]
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
mov esi, eax
shl esi, 4
mov dword [esp + 0x2c], eax
inc eax
lea ecx, [ecx + edi - 1]
add esi, edx
cmp eax, ecx
jle 0x40c28b
mov eax, edi
mov ecx, dword [esp + 0x30]
shl eax, 4
add eax, edx
push eax
lea edi, [esp + 0x40]
call fcn.004046c0
fld qword [esp + 0x38]
fcomp st(1)
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x40c2be
mov edx, dword [esp + 0x2c]
fstp qword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov dword [eax], edx
jmp 0x40c2c0
fstp st(0)
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jne 0x40c255
mov eax, dword [esp + 0x18]
xor edi, edi
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
cmp ecx, edi
jge 0x40c2f2
cmp eax, edi
je 0x40c2ee
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x40c310
mov edx, dword [ebx + 0x80]
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
cmp eax, edi
je 0x40c30e
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
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 0xc