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

Disassembly:
jmp 0x4ae890
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x7c]
xor esi, esi
test edi, edi
je 0x4aea41
cmp esi, 0xffffffff
je 0x4aea41
mov ebx, dword [esp + 0x78]
cmp edi, esi
cmovb esi, edi
cmp esi, edi
jae 0x4ae8d8
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push 0x7b
push eax
call sub.VCRUNTIME140.dll_memchr
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4ae8d8
sub ebp, ebx
jmp 0x4ae8db
or ebp, 0xffffffff
test ebp, ebp
jne 0x4aebb8
or esi, 0xffffffff
mov byte [esp + 0x13], 0
mov eax, edi
mov dword [esp + 0x1c], 0x4ae130
sub eax, ebp
lea edx, [esp + 0x13]
cmp eax, esi
mov dword [esp + 0x20], edx
mov ecx, esi
lea edx, [ebx + ebp]
cmovb ecx, eax
mov dword [esp + 0x14], edx
cmp ecx, esi
mov dword [esp + 0x18], ecx
cmovb esi, ecx
test esi, esi
je 0x4ae95c
or edi, 0xffffffff
nop dword [eax]
mov al, byte [edx]
lea ecx, [esp + 0x1c]
push eax
call fcn.0040d15c
test al, al
je 0x4ae992
mov edx, dword [esp + 0x14]
mov eax, 1
cmp esi, eax
mov ecx, esi
cmovb eax, esi
mov esi, edi
sub ecx, eax
add edx, eax
cmp ecx, 0xffffffff
mov dword [esp + 0x14], edx
cmovb esi, ecx
test esi, esi
jne 0x4ae920
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp ecx, 1
ja 0x4aeb59
cmp ebp, edi
jae 0x4ae9a4
mov eax, edi
sub eax, ebp
push eax
lea eax, [ebx + ebp]
push 0x7d
push eax
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4ae9a4
sub esi, ebx
jmp 0x4ae9a7
mov eax, dword [esp + 0x18]
mov ecx, eax
mov edi, dword [esp + 0x7c]
sub ecx, esi
mov ebx, dword [esp + 0x78]
jmp 0x4ae963
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x4aeb1e
mov ebp, 1
cmp edi, ebp
cmovb ebp, edi
cmp ebp, edi
jae 0x4ae9d9
mov eax, edi
sub eax, ebp
push eax
lea eax, [ebx + ebp]
push 0x7b
push eax
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
je 0x4ae9d9
sub eax, ebx
jmp 0x4ae9dc
or eax, 0xffffffff
cmp eax, esi
jb 0x4aead6
cmp ebp, esi
mov dword [esp + 0x18], esi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x18]
cmovae ecx, eax
lea edx, [ebx + ebp]
lea eax, [esp + 0x7c]
cmp edi, dword [ecx]
cmovae eax, ecx
inc esi
mov ecx, dword [eax]
mov eax, esi
sub ecx, ebp
cmp edi, esi
push ecx
cmovb eax, edi
sub edi, eax
push edx
lea ebp, [eax + ebx]
or ebx, 0xffffffff
lea eax, [esp + 0x50]
cmp edi, 0xffffffff
push eax
cmovb ebx, edi
call fcn.00414475
add esp, 0xc
cmp byte [esp + 0x6c], 0
jne 0x4aeaac
mov edi, dword [esp + 0x7c]
cmp esi, edi
jb 0x4ae8a5
mov eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x24], 2
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0
movups xmm0, xmmword [esp + 0x24]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 2
movups xmmword [eax], xmm0
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], 0
movups xmm0, xmmword [esp + 0x34]
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x74]
movups xmm0, xmmword [esp + 0x48]
mov ecx, dword [esp + 0x68]
movups xmmword [eax], xmm0
mov dword [eax + 0x24], ebp
movups xmm0, xmmword [esp + 0x58]
mov dword [eax + 0x28], ebx
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
cmp edi, eax
lea ecx, [esp + 0x24]
mov ebp, 0xffffffff
cmovb eax, edi
sub edi, eax
cmp edi, 0xffffffff
push eax
push ebx
lea esi, [eax + ebx]
cmovb ebp, edi
call fcn.00405641
mov edx, dword [esp + 0x74]
movups xmm0, xmmword [eax]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x24], esi
movups xmmword [edx], xmm0
mov dword [edx + 0x28], ebp
movups xmm0, xmmword [eax + 0x10]
mov eax, edx
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x20], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
push edi
push ebx
lea ecx, [esp + 0x2c]
call fcn.00405641
mov edx, dword [esp + 0x74]
movups xmm0, xmmword [eax]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x24], 0
movups xmmword [edx], xmm0
mov dword [edx + 0x28], 0
movups xmm0, xmmword [eax + 0x10]
mov eax, edx
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x20], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
shr ecx, 1
lea edx, [ebx + ebp]
mov esi, ecx
mov dword [esp + 0x18], ecx
mov eax, edi
sub eax, ebp
cmp eax, esi
cmovb ecx, eax
lea eax, [esi + esi]
cmp edi, eax
push ecx
cmovb eax, edi
lea ecx, [esp + 0x28]
sub edi, eax
cmp edi, 0xffffffff
push edx
lea esi, [eax + ebx]
mov ebx, 0xffffffff
cmovb ebx, edi
call fcn.00405641
mov edx, dword [esp + 0x74]
movups xmm0, xmmword [eax]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x24], esi
movups xmmword [edx], xmm0
mov dword [edx + 0x28], ebx
movups xmm0, xmmword [eax + 0x10]
mov eax, edx
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x20], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
cmp edi, ebp
lea ecx, [esp + 0x24]
mov eax, 0xffffffff
cmovb ebp, edi
sub edi, ebp
cmp edi, 0xffffffff
push ebp
cmovb eax, edi
lea esi, [ebx + ebp]
push ebx
mov dword [esp + 0x20], eax
call fcn.00405641
mov edx, dword [esp + 0x74]
pop edi
movups xmm0, xmmword [eax]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x24], esi
movups xmmword [edx], xmm0
pop esi
movups xmm0, xmmword [eax + 0x10]
mov eax, dword [esp + 0x10]
pop ebp
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x28], eax
mov eax, edx
mov dword [edx + 0x20], ecx
pop ebx
add esp, 0x60
ret