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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1dc
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x1f0]
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x10], eax
cmp ecx, eax
je 0x40d1df
mov eax, dword [esp + 0x1f0]
lea esi, [eax + 0x58]
lea edi, [eax + 8]
lea ebx, [esp + 0x8c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
nop word cs:[eax + eax]
mov dword [esp + 0x14], ecx
mov eax, dword [ecx]
mov dword [esp], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x40cf9b
mov eax, dword [esp]
shr eax, 0x10
mov ebp, esi
jmp 0x40cf69
add ecx, 4
mov ecx, dword [ecx]
test ecx, ecx
je 0x40cf88
mov edx, dword [esp]
cmp word [ecx + 0x10], dx
jb 0x40cf60
ja 0x40cf80
cmp word [ecx + 0x12], ax
setb dl
test dl, 1
jne 0x40cf60
mov ebp, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x40cf69
mov ecx, ebp
cmp ebp, esi
je 0x40cf9b
mov ecx, dword [esp]
cmp word [ebp + 0x10], cx
jbe 0x40d1c8
mov ecx, esi
movups xmm0, xmmword [edi + 0x3c]
movups xmmword [esp + 0x68], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esp + 0x5c], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [esp + 0x3c], xmm1
movups xmmword [esp + 0x2c], xmm0
lea eax, [ecx + 0x114]
mov dword [esp + 0x18], eax
movups xmm0, xmmword [ecx + 0x114]
movups xmm1, xmmword [ecx + 0x124]
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm1
movups xmm0, xmmword [ecx + 0x134]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [ecx + 0x144]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [ecx + 0x150]
movups xmmword [edi + 0x3c], xmm0
movzx eax, word [ecx + 0x160]
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov byte [esp + 0x84], 1
mov word [esp + 0x88], ax
mov dword [esp + 0x78], 0x41e544
mov esi, 0x20
mov dword [esp + 0x1c], ecx
jmp 0x40d062
mov byte [ebx + 0xc], 1
add esi, 0x10
add ebx, 0x10
cmp esi, 0x120
je 0x40d0d0
mov byte [ebx], 0
mov byte [ebx + 0xc], 0
cmp byte [ecx + esi], 0
je 0x40d054
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [ecx + esi - 0xc]
mov edi, dword [ecx + esi - 8]
mov ebp, edi
sub ebp, eax
sub edi, eax
je 0x40d050
js 0x40d1fa
sar ebp, 3
push edi
mov dword [esp + 0x24], eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov dword [ebx], eax
mov dword [ebx + 4], eax
lea ebp, [eax + ebp*8]
mov dword [ebx + 8], ebp
push edi
push dword [esp + 0x24]
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [ebx + 4], ebp
jmp 0x40d050
mov eax, dword [esp + 0x18]
movups xmm0, xmmword [eax + 0x3e]
lea ebx, [esp + 0x8c]
movups xmmword [ebx + 0x13e], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ebx + 0x130], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebx + 0x120], xmm0
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [ebx + 0x110], xmm1
movups xmmword [ebx + 0x100], xmm0
movzx eax, word [esp]
inc eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov byte [esp + 0x84], 1
mov dword [esp + 0x24], 0x40cc80
mov dword [esp + 0x28], 0
sub esp, 0x10
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 8], xmm0
lea eax, [esp + 0x88]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x200]
mov dword [esp], eax
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00409780
mov esi, dword [esi]
mov dword [esp + 0x78], 0x41e544
mov ecx, ebx
call fcn.0040ea90
movups xmm0, xmmword [esp + 0x68]
mov edi, dword [esp + 0xc]
movups xmmword [edi + 0x3c], xmm0
movups xmm0, xmmword [esp + 0x5c]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [esp + 0x4c]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esp + 0x2c]
movups xmm1, xmmword [esp + 0x3c]
movups xmmword [edi + 0x10], xmm1
movups xmmword [edi], xmm0
test esi, esi
jne 0x40d1e9
mov ecx, dword [esp + 0x14]
add ecx, 4
cmp ecx, dword [esp + 0x10]
mov esi, dword [esp + 8]
jne 0x40cf40
jmp 0x40d1df
mov ecx, ebp
jb 0x40cf9d
cmp word [ecx + 0x12], ax
ja 0x40cf9b
jmp 0x40cf9d
mov eax, dword [esp + 4]
mov dword [eax], 0
mov eax, dword [esp + 4]
add esp, 0x1dc
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, ebx
call fcn.0040ee80
int3