Function at 0x40f1d0
Capabilities:
Execute command
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x41f00c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], 0
cmp dword [edi + 0x10], 0
je 0x40f473
mov eax, dword [ebx]
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x58], 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40f4f8
cmp dword [esp + 0x54], 0x103
sete al
test al, al
je 0x40f4f8
mov ecx, dword [ebx + 4]
mov eax, 1
mov edx, dword [ebx + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
cmp ecx, edx
je 0x40f348
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.0040f6b0
or dword [esp + 0x14], 2
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x40f26e
mov ecx, dword [edi]
cmp dword [esp + 0x50], 0x10
lea edx, [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x4c]
cmovae edx, eax
mov dword [esp + 0x20], eax
cmp esi, dword [edi + 0x10]
jne 0x40f2e4
sub esi, 4
jb 0x40f2a1
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40f2a6
add edx, 4
add ecx, 4
sub esi, 4
jae 0x40f290
cmp esi, 0xfffffffc
je 0x40f2da
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x40f2d3
cmp esi, 0xfffffffd
je 0x40f2da
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x40f2d3
cmp esi, 0xfffffffe
je 0x40f2da
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x40f2d3
cmp esi, 0xffffffff
je 0x40f2da
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x40f2da
sbb eax, eax
or eax, 1
jmp 0x40f2dc
xor eax, eax
test eax, eax
jne 0x40f2e4
mov bl, 1
jmp 0x40f2e6
xor bl, bl
mov eax, dword [esp + 0x50]
cmp eax, 0x10
jb 0x40f31e
mov edx, dword [esp + 0x20]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f314
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f45c
push ecx
push edx
call fcn.00413c77
add esp, 8
test bl, bl
jne 0x40f3da
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
add esi, 0x40
inc eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x18], eax
cmp esi, dword [esp + 0x58]
jne 0x40f254
mov ebx, dword [esp + 0x1c]
cmp dword [ebx + 0x20], 0
je 0x40f426
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.0040f6b0
or dword [esp + 0x14], 5
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x40f36d
mov edi, dword [edi]
cmp dword [esp + 0x38], 0x10
lea ecx, [esp + 0x24]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
cmovae ecx, esi
cmp edx, eax
jne 0x40f42a
sub edx, 4
jb 0x40f3a1
nop
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40f3a6
add ecx, 4
add edi, 4
sub edx, 4
jae 0x40f390
cmp edx, 0xfffffffc
je 0x40f419
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x40f3d3
cmp edx, 0xfffffffd
je 0x40f419
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x40f3d3
cmp edx, 0xfffffffe
je 0x40f419
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x40f3d3
cmp edx, 0xffffffff
je 0x40f419
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x40f419
sbb eax, eax
or eax, 1
jmp 0x40f41b
push 0x4186cc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [esp + 0x58]
add esp, 4
mov edx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x3c]
test ecx, ecx
jne 0x40f3fd
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
push dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00413819
mov esp, ebp
pop ebp
ret 4
xor eax, eax
test eax, eax
jne 0x40f42a
mov byte [esp + 0x13], 1
jmp 0x40f42f
mov esi, dword [esp + 0x24]
mov byte [esp + 0x13], 0
test byte [esp + 0x14], 1
je 0x40f46c
mov eax, dword [esp + 0x38]
cmp eax, 0x10
jb 0x40f46c
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40f462
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f462
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.00413c77
add esp, 8
cmp byte [esp + 0x13], 0
je 0x40f4e8
cmp dword [ebx + 0x20], 0
je 0x40f4cd
mov eax, dword [ebx + 0x20]
lea edx, [ebx + 4]
add eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
dec eax
dec ecx
and ecx, eax
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + ecx*4]
cmp edx, eax
je 0x40f4a6
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 6
push eax
push ecx
mov ecx, edx
call fcn.0040f8d0
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
dec eax
add ecx, eax
mov eax, dword [ebx + 0x18]
dec eax
and ecx, eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + ecx*4]
call fcn.0040d930
add dword [ebx + 0x20], 0xffffffff
jne 0x40f4cd
mov dword [ebx + 0x1c], 0
mov ecx, ebx
call fcn.0040f120
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413819
mov esp, ebp
pop ebp
ret 4
push 0x4186cc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
jmp 0x40f4cd
push 0
push str.SAChecker__kichiro
push 0x418804
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x41881c
call fcn.0040ace0
push 0x40af00
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call dword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]