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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
movzx eax, byte [0x417a5c]
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 4], xmm0
xor eax, 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0x80]
mov dword [esp], eax
call fcn.00410eb0
xor eax, eax
test byte [esp + 0xa8], 1
je 0x40a146
mov eax, dword [esp + 0x80]
mov dword [esp + 0x80], 0
mov dword [esp + 0x40], eax
mov word [esp + 0xc0], 0x105
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], edi
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0xb0]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x40]
call fcn.00404c30
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x40a18f
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x3c], 0x417e94
cmp byte [0x417e90], 0
je 0x40a242
mov word [esp + 0x38], 0x105
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00410f16
test al, al
je 0x40a283
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], edi
movsd xmm0, qword [esp + 0x60]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.00410f22
movzx eax, byte [esp + 0x28]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x29]
cmovne eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
cmovne ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ecx
movsd xmm0, qword [esp + 0x18]
movsd qword [esp], xmm0
lea ecx, [esp + 0x3c]
call fcn.00410e32
sub esp, 8
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], eax
jmp 0x40a3e4
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
movsd xmm0, qword [esp + 0x68]
movsd qword [esp], xmm0
mov dword [esp + 8], 0
call fcn.00410f34
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], eax
jmp 0x40a40e
movzx eax, byte [0x417a50]
mov ecx, eax
shr ecx, 1
test al, 1
mov eax, 0x417a51
cmovne eax, dword [0x417a58]
cmovne ecx, dword [0x417a54]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edi
movsd xmm0, qword [esp + 0x50]
movsd qword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0x58]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.00410ed4
test byte [esp + 0x34], 1
jne 0x40a2fe
test byte [esp + 0x28], 1
jne 0x40a328
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 0x18], xmm0
jmp 0x40a384
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edi
movsd xmm0, qword [esp + 0x48]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.00410f22
jmp 0x40a384
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
cmp ebx, 0xa
ja 0x40a343
lea eax, [esp + 0x19]
mov ecx, ebx
add cl, bl
mov byte [esp + 0x18], cl
jmp 0x40a373
mov dword [esp + 0x44], edx
cmp ebx, 0xfffffff0
jae 0x40a437
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
mov dword [esp], eax
call sub.libc.dll_operator_new_unsigned_int_
mov dword [esp + 0x20], eax
add edi, 2
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x44]
inc ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
movzx eax, byte [esp + 0x18]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x19]
cmovne eax, dword [esp + 0x20]
mov dword [esp + 0x78], eax
cmovne ecx, dword [esp + 0x1c]
mov dword [esp + 0x7c], ecx
movsd xmm0, qword [esp + 0x78]
movsd qword [esp], xmm0
lea ecx, [esp + 0x3c]
call fcn.00410e32
sub esp, 8
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], eax
test byte [esp + 0x18], 1
je 0x40a3dd
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
test byte [esp + 0x34], 1
jne 0x40a3f9
test byte [esp + 0x28], 1
je 0x40a40e
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
jmp 0x40a40e
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x40a40e
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x80]
mov dword [esi], eax
movups xmm0, xmmword [esp + 0x84]
movups xmm1, xmmword [esp + 0x94]
movups xmmword [esi + 4], xmm0
movups xmmword [esi + 0x14], xmm1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x18]
call fcn.00404b90