Function at 0x4186c0
Capabilities:
Execute command
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x42800c]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [eax + 0x10], 0
mov esi, ecx
mov dword [esp + 0x14], 0
je 0x41884f
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4188d4
cmp dword [esp + 0x30], 0x103
sete al
test al, al
je 0x4188d4
mov eax, dword [esi + 8]
mov ebx, 1
mov edi, dword [esi + 4]
mov dword [esp + 0x30], eax
cmp edi, eax
je 0x41879c
mov edx, ebx
lea ecx, [esp + 0x18]
call fcn.00418a90
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x18]
or dword [esp + 0x14], 2
call fcn.00418c30
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x13], al
cmp ecx, 0x10
jb 0x41878e
mov edx, dword [esp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418780
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418838
push ecx
push edx
call fcn.0041dc57
mov al, byte [esp + 0x1b]
add esp, 8
test al, al
jne 0x4187cb
add edi, 0x40
inc ebx
cmp edi, dword [esp + 0x30]
jne 0x418734
cmp dword [esi + 0x20], 0
je 0x418802
mov edx, ebx
lea ecx, [esp + 0x18]
call fcn.00418a90
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov edx, dword [ebp + 8]
or ebx, 5
call fcn.00418c30
test al, al
je 0x418806
mov byte [esp + 0x13], 1
jmp 0x41880b
push 0x421e8c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [edi + 0x3c]
add esp, 4
test ecx, ecx
jne 0x4187e6
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
push dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0041d7f9
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x13], 0
test bl, 1
je 0x418848
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x10
jb 0x418848
mov edx, dword [esp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41883e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41883e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041dc57
add esp, 8
cmp byte [esp + 0x13], 0
je 0x4188c4
cmp dword [esi + 0x20], 0
je 0x4188a9
mov eax, dword [esi + 0x20]
lea edx, [esi + 4]
add eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
dec eax
dec ecx
and ecx, eax
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
cmp edx, eax
je 0x418882
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 6
push eax
push ecx
mov ecx, edx
call fcn.00418cb0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
dec eax
add ecx, eax
mov eax, dword [esi + 0x18]
dec eax
and ecx, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + ecx*4]
call fcn.004163c0
add dword [esi + 0x20], 0xffffffff
jne 0x4188a9
mov dword [esi + 0x1c], 0
mov ecx, esi
call fcn.00418610
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d7f9
mov esp, ebp
pop ebp
ret 4
push 0x421e8c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
jmp 0x4188a9
push 0
push str.SAChecker__kichiro
push 0x421fc4
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, 0x421fdc
call fcn.004136e0
push 0x4138c0
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]