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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x40a0e3
mov dword [esp + 0x15c], 0
lea edx, [esp + 0x138]
mov eax, dword [ecx]
push edx
mov eax, dword [eax]
call eax
mov edi, dword [ebp + 0xc]
mov ecx, eax
mov al, byte [esi + 0x98]
xorps xmm0, xmm0
mov dword [esp + 0x15c], ecx
mov byte [esp + 0xf], al
mov dword [esp + 0x80], edi
mov byte [esp + 0xb4], 0
mov dword [esp + 0xdc], 0
movups xmmword [esp + 0x84], xmm0
movups xmmword [esp + 0x94], xmm0
movups xmmword [esp + 0xa4], xmm0
test ecx, ecx
je 0x409b5c
mov eax, dword [ecx]
lea edx, [esp + 0xb8]
push edx
mov eax, dword [eax]
call eax
mov dword [esp + 0xdc], eax
mov al, byte [esp + 0xf]
push 9
lea ecx, [esp + 0xf4]
mov byte [esp + 0xe4], al
mov byte [esp + 0xec], 9
call fcn.00407a90
mov edx, dword [esp + 0x90]
xor eax, eax
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x34], edx
mov byte [esp + 0xf], 1
mov dword [esp + 0x34], eax
test ecx, ecx
jns 0x409bbc
mov eax, ecx
neg eax
cmp dword [esp + 0x34], eax
jae 0x409bba
xor eax, eax
add ecx, eax
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x409bc6
xor eax, eax
add ecx, eax
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
and ecx, 0x1f
lea eax, [esp + 0xf]
push ecx
push edx
push eax
push ecx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xa4]
call fcn.0040c480
mov ecx, dword [esp + 0x15c]
test ecx, ecx
je 0x409c02
mov edx, dword [ecx]
lea eax, [esp + 0x138]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
lea eax, [esp + 0x80]
mov ecx, esi
push eax
call fcn.0040c7b0
lea ecx, [esi + 0x30]
call fcn.0040aa70
mov dword [esi + 0x28], eax
cmp eax, 0xf
je 0x409dbc
mov eax, dword [str.value]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
sub esp, 8
movq xmm0, qword [esi + 0x44]
mov ecx, esi
mov dword [esp + 0x48], eax
mov al, byte [0x484b0c]
mov byte [esp + 0x4c], al
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x48]
push eax
push 0xf
lea eax, [esp + 0x78]
mov dword [esp + 0x60], 5
push eax
mov dword [esp + 0x68], 0xf
mov byte [esp + 0x59], 0
movq qword [esp + 0x48], xmm0
call fcn.0040a3d0
add esp, 4
lea ecx, [esp + 0xfc]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040d4b0
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esi + 0x30]
push eax
call fcn.0040a9c0
cmp byte [esp + 0xe0], 0
mov byte [esp + 0xb4], 1
je 0x409cb9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x409cef
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409ce5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409dac
push ecx
push edx
call fcn.004743b3
add esp, 8
mov esi, dword [sym.imp.VCRUNTIME140.dll___std_exception_destroy]
lea eax, [esp + 0x10c]
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xf
mov byte [esp + 0x14], 0
mov dword [esp + method.std::exception.virtual_0], vtable.std::exception.0
call esi
add esp, 4
mov dword [esp + 0xf8], vtable.std::exception.0
lea eax, [esp + 0xfc]
push eax
call esi
mov ecx, dword [esp + 0x80]
add esp, 4
cmp ecx, 0xf
jbe 0x409d6f
mov edx, dword [esp + 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409d65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409dac
push ecx
push edx
call fcn.004743b3
add esp, 8
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0xf
mov byte [esp + 0x68], 0
cmp ecx, 0xf
jbe 0x409dbc
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409db2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409db2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004743b3
add esp, 8
cmp byte [esp + 0xb4], 0
je 0x409f58
push 9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 9
call fcn.00407a90
mov cl, byte [edi]
mov al, byte [esp + 0x10]
mov byte [edi], al
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], cl
push dword [esp + 0x34]
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x20]
mov dword [edi + 0xc], ecx
lea ecx, [esp + 0x1c]
mov dword [edi + 8], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
call fcn.00405e00
push dword [esp + 0xe8]
lea ecx, [esp + 0xf4]
call fcn.00405e00
mov ecx, dword [esp + 0xdc]
test ecx, ecx
je 0x409e51
mov edx, dword [ecx]
lea eax, [esp + 0xb8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esp + 0xdc], 0
mov edx, dword [esp + 0xa0]
test edx, edx
je 0x409eb1
mov ecx, dword [esp + 0xa8]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x409e86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0dd
push ecx
push edx
call fcn.004743b3
add esp, 8
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov edx, dword [esp + 0x90]
test edx, edx
je 0x409f11
mov ecx, dword [esp + 0x98]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x409ee6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0dd
push ecx
push edx
call fcn.004743b3
add esp, 8
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov edx, dword [esp + 0x84]
test edx, edx
je 0x409f50
mov ecx, dword [esp + 0x8c]
sub ecx, edx
mov eax, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x409f46
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0dd
push ecx
push edx
call fcn.004743b3
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp byte [edi], 9
jne 0x409fa6
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.00407a90
mov cl, byte [edi]
mov al, byte [esp + 0x10]
mov byte [edi], al
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], cl
push dword [esp + 0x34]
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x20]
mov dword [edi + 0xc], ecx
lea ecx, [esp + 0x1c]
mov dword [edi + 8], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
call fcn.00405e00
push dword [esp + 0xe8]
lea ecx, [esp + 0xf4]
call fcn.00405e00
mov ecx, dword [esp + 0xdc]
test ecx, ecx
je 0x409fe4
mov edx, dword [ecx]
lea eax, [esp + 0xb8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esp + 0xdc], 0
mov edx, dword [esp + 0xa0]
test edx, edx
je 0x40a044
mov ecx, dword [esp + 0xa8]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40a019
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0dd
push ecx
push edx
call fcn.004743b3
add esp, 8
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov edx, dword [esp + 0x90]
test edx, edx
je 0x40a0a0
mov ecx, dword [esp + 0x98]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40a075
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0dd
push ecx
push edx
call fcn.004743b3
add esp, 8
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov edx, dword [esp + 0x84]
test edx, edx
je 0x409f50
mov ecx, dword [esp + 0x8c]
sub ecx, edx
mov eax, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x409f46
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409f46
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov al, byte [esi + 0x98]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov byte [esp + 0x55], al
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], edi
movups xmmword [esp + 0x48], xmm0
mov byte [esp + 0x58], 0
call fcn.0040d840
lea ecx, [esi + 0x30]
call fcn.0040aa70
mov dword [esi + 0x28], eax
cmp eax, 0xf
je 0x40a2c4
mov eax, dword [str.value]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
sub esp, 8
movq xmm0, qword [esi + 0x44]
mov ecx, esi
mov dword [esp + 0x18], eax
mov al, byte [0x484b0c]
mov byte [esp + 0x1c], al
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
push eax
push 0xf
lea eax, [esp + 0x108]
mov dword [esp + 0x30], 5
push eax
mov dword [esp + 0x38], 0xf
mov byte [esp + 0x29], 0
movq qword [esp + 0x48], xmm0
call fcn.0040a3d0
add esp, 4
lea ecx, [esp + 0x11c]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040d4b0
add esp, 0xc
lea eax, [esp + 0x68]
lea ecx, [esi + 0x30]
push eax
call fcn.0040a9c0
cmp byte [esp + 0x55], 0
mov byte [esp + 0x54], 1
je 0x40a1b2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov ecx, dword [esp + 0x7c]
cmp ecx, 0xf
jbe 0x40a1e8
mov edx, dword [esp + 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a1de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a2b4
push ecx
push edx
call fcn.004743b3
add esp, 8
mov esi, dword [sym.imp.VCRUNTIME140.dll___std_exception_destroy]
lea eax, [esp + 0x12c]
push eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0xf
mov byte [esp + 0x6c], 0
mov dword [esp + method.std::exception.virtual_0], vtable.std::exception.0
call esi
add esp, 4
mov dword [esp + method.std::exception.virtual_0], vtable.std::exception.0
lea eax, [esp + 0x11c]
push eax
call esi
mov ecx, dword [esp + 0x110]
add esp, 4
cmp ecx, 0xf
jbe 0x40a26e
mov edx, dword [esp + 0xf8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a264
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a2b4
push ecx
push edx
call fcn.004743b3
add esp, 8
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0xf
mov byte [esp + 0xf8], 0
cmp ecx, 0xf
jbe 0x40a2c4
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a2ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a2ba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004743b3
add esp, 8
cmp byte [esp + 0x54], 0
je 0x40a329
push 9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 9
call fcn.00407a90
mov cl, byte [edi]
mov al, byte [esp + 0x10]
mov byte [edi], al
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], cl
push dword [esp + 0x34]
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x20]
mov dword [edi + 0xc], ecx
lea ecx, [esp + 0x1c]
mov dword [edi + 8], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
call fcn.00405e00
mov edx, dword [esp + 0x44]
test edx, edx
je 0x409f50
mov ecx, dword [esp + 0x4c]
jmp 0x409f23
mov edx, dword [esp + 0x44]
test edx, edx
je 0x409f50
mov ecx, dword [esp + 0x4c]
jmp 0x40a0b6