Function at 0x401120
Capabilities:
Create process on windows
Create thread
Enumerate processes
Inject thread
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x5d8
mov eax, dword [0x409008]
xor eax, esp
mov dword [esp + 0x5d4], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x4d4]
mov dword [esp + 0x1b8], 0
push eax
push 0
mov dword [esp + 0x1c4], 0xf
mov byte [esp + 0x1b0], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x4d0]
mov dword [esp + 0x19c], 0
mov dword [esp + 0x1a0], 0xf
lea edx, [ecx + 1]
mov byte [esp + 0x18c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401197
sub ecx, edx
lea eax, [esp + 0x4d0]
push ecx
push eax
lea ecx, [esp + 0x194]
call fcn.00403130
cmp dword [esp + 0x1a0], 0x10
lea edx, [esp + 0x18c]
mov eax, dword [esp + 0x19c]
cmovae edx, dword [esp + 0x18c]
or esi, 0xffffffff
test eax, eax
je 0x401219
dec eax
mov ecx, esi
cmp eax, esi
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x4011fa
nop dword [eax]
cmp ecx, edx
je 0x401219
dec ecx
cmp byte [ecx], 0x5c
jne 0x4011f0
sub ecx, edx
cmp ecx, 0xffffffff
je 0x401219
push 0xc
push str.c1cx_lib.dll
push ecx
lea eax, [ecx + 1]
push eax
lea ecx, [esp + 0x19c]
call fcn.00402fc0
lea ecx, [esp + 0x4d0]
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], 0xf
lea edx, [ecx + 1]
mov byte [esp + 0x174], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401241
sub ecx, edx
lea eax, [esp + 0x4d0]
push ecx
push eax
lea ecx, [esp + 0x17c]
call fcn.00403130
mov edi, dword [esp + 0x188]
lea edx, [esp + 0x174]
mov eax, dword [esp + 0x184]
cmp edi, 0x10
cmovae edx, dword [esp + 0x174]
test eax, eax
je 0x4012c3
dec eax
mov ecx, esi
cmp eax, 0xffffffff
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x40129d
cmp ecx, edx
je 0x4012c3
dec ecx
cmp byte [ecx], 0x5c
jne 0x401293
sub ecx, edx
cmp ecx, 0xffffffff
je 0x4012c3
push 0xa
push str.config.ini
push ecx
lea eax, [ecx + 1]
push eax
lea ecx, [esp + 0x184]
call fcn.00402fc0
mov edi, dword [esp + 0x188]
push 0xb4
lea eax, [esp + 0x28]
mov dword [esp + 0x144], 0
push 0
push eax
mov dword [esp + 0x150], 0xf
mov byte [esp + 0x13c], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x20], 0x40644c
cmp edi, 0x10
lea esi, [esp + 0x174]
lea ecx, [esp + 0x90]
cmovae esi, dword [esp + 0x174]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x20], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [esp + ecx + 0x1c], eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0x78], 0
mov byte [esp + 0x6d], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x409600]
push ecx
push 1
mov dword [esp + 0x78], eax
lea ecx, [esp + 0x38]
mov eax, dword [0x409604]
push esi
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x74], 0
call fcn.004033d0
test eax, eax
jne 0x4013c1
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x20], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [esp + ecx + 0x1c], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
cmp dword [esp + eax + 0x2c], 0
jne 0x401627
cmp dword [esp + 0x7c], 0
je 0x40161b
lea ecx, [esp + 0x20]
mov dword [esp + 0x16c], 0
push 0xa
add ecx, eax
mov dword [esp + 0x174], 0xf
mov byte [esp + 0x160], 0
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [esp + 0x15c]
push eax
lea ecx, [esp + 0x24]
call fcn.00403df0
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x4015b1
nop dword [eax]
nop dword [eax + eax]
push ecx
push str.GamePath
lea ecx, [esp + 0x164]
call fcn.004022e0
cmp eax, 0xffffffff
jne 0x4014b4
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
push 0xa
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [esp + 0x15c]
push eax
lea ecx, [esp + 0x24]
call fcn.00403df0
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x401460
jmp 0x4015b1
push 0xffffffffffffffff
push ecx
push 0x4062e4
lea ecx, [esp + 0x168]
call fcn.004022e0
inc eax
lea ecx, [esp + 0x160]
push eax
lea eax, [esp + 0x1c4]
push eax
call fcn.004021a0
mov esi, eax
lea eax, [esp + 0x130]
cmp eax, esi
je 0x401573
mov edx, dword [esp + 0x144]
cmp edx, 0x10
jb 0x40152b
mov ecx, dword [esp + 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401521
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4015a1
push edx
push ecx
call fcn.004044ff
add esp, 8
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0xf
mov byte [esp + 0x130], 0
movups xmm0, xmmword [esi]
movups xmmword [esp + 0x130], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [esp + 0x140], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [esp + 0x1d0]
cmp edx, 0x10
jb 0x4015b1
mov ecx, dword [esp + 0x1bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4015a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4015a7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004044ff
add esp, 8
lea ecx, [esp + 0x30]
call fcn.00403360
test eax, eax
jne 0x4015d4
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov edx, dword [esp + 0x170]
cmp edx, 0x10
jb 0x4018d8
mov ecx, dword [esp + 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40160c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40160c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004044ff
add esp, 8
jmp 0x4018d8
push 0x14
push str.FAIL_iniFile.is_open
jmp 0x4018cc
push 0x41
push str.c1cx
push str.Point_me_to_your_CoDMP_file
push 0
call edi
cmp eax, 2
jne 0x401643
xor esi, esi
jmp 0x401ecd
push 0x58
lea eax, [esp + 0xdc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0xd8], 0x58
lea eax, [esp + 0x2a0]
mov dword [esp + 0xdc], 0
mov dword [esp + 0xf4], eax
lea eax, [esp + 0xd8]
mov byte [esp + 0x2a0], 0
push eax
mov dword [esp + 0xfc], 0x104
mov dword [esp + 0xe8], str.Executable_Files
mov dword [esp + 0xf4], 1
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x110], 0x1800
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x4018c5
mov edx, dword [esp + 0xf4]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4016f2
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x138]
call fcn.00403130
push 0xac
lea eax, [esp + 0x1f8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1f0], 0x406444
cmp dword [esp + 0x188], 0x10
lea esi, [esp + 0x174]
lea ecx, [esp + 0x258]
cmovae esi, dword [esp + 0x174]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [esp + 0x1fc]
push eax
lea ecx, [esp + 0x1fc]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [esp + 0x1f0]
mov eax, dword [eax + 4]
mov dword [esp + eax + method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x1f0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0x1ec], eax
lea ecx, [esp + 0x1f4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [esp + 0x1f4]
mov dword [esp + method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0x23c], 0
mov byte [esp + 0x231], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x409600]
push ecx
push 2
mov dword [esp + 0x23c], eax
lea ecx, [esp + 0x1fc]
mov eax, dword [0x409604]
push esi
mov dword [esp + 0x24c], 0
mov dword [esp + 0x244], eax
mov dword [esp + 0x238], 0
call fcn.004033d0
test eax, eax
jne 0x401824
push eax
mov eax, dword [esp + 0x1f4]
lea ecx, [esp + 0x1f4]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [esp + 0x1f0]
mov eax, dword [eax + 4]
mov dword [esp + eax + method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x1f0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0x1ec], eax
cmp dword [esp + 0x240], 0
je 0x4018b7
lea ecx, [esp + 0x1f0]
call fcn.00403530
cmp dword [esp + 0x144], 0x10
lea edx, [esp + 0x130]
push dword [esp + 0x140]
cmovae edx, dword [esp + 0x134]
mov ecx, eax
call fcn.00403fa0
add esp, 4
lea ecx, [esp + 0x1f4]
call fcn.00403360
test eax, eax
jne 0x4018b7
push eax
mov eax, dword [esp + 0x1f4]
lea ecx, [esp + 0x1f4]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [esp + 0x1f0]
call fcn.004020f0
jmp 0x4018d8
push 0x15
push str.FAIL_GetOpenFileNameA
lea ecx, [esp + 0x1ac]
call fcn.00403130
cmp dword [esp + 0x1b4], 0
jne 0x401ea5
push ecx
push 0x406354
lea ecx, [esp + 0x138]
call fcn.00402200
mov edx, eax
cmp edx, 0xffffffff
je 0x4019b1
cmp dword [esp + 0x140], edx
lea eax, [esp + 0x130]
lea ecx, [esp + 0x15c]
mov dword [esp + 0x16c], 0
cmovb edx, dword [esp + 0x140]
cmp dword [esp + 0x144], 0x10
push edx
cmovae eax, dword [esp + 0x134]
push eax
mov dword [esp + 0x178], 0xf
mov byte [esp + 0x164], 0
call fcn.00403130
cmp dword [esp + 0x170], 0x10
lea eax, [esp + 0x15c]
cmovae eax, dword [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [esp + 0x170]
cmp edx, 0x10
jb 0x4019b1
mov ecx, dword [esp + 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4019a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4019a7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004044ff
add esp, 8
push ecx
push 0x406358
lea ecx, [esp + 0x138]
call fcn.00402200
cmp eax, 0xffffffff
je 0x401e46
lea ecx, [eax + 1]
mov dword [esp + 0x1cc], 0
mov eax, dword [esp + 0x140]
mov dword [esp + 0x1d0], 0xf
mov byte [esp + 0x1bc], 0
cmp eax, ecx
jb 0x402036
sub eax, ecx
mov edx, 0xffffffff
cmp eax, 0xffffffff
cmovb edx, eax
cmp dword [esp + 0x144], 0x10
lea eax, [esp + 0x130]
cmovae eax, dword [esp + 0x130]
add eax, ecx
lea ecx, [esp + 0x1bc]
push edx
push eax
call fcn.00403130
cmp dword [esp + 0x1d0], 0x10
lea edx, [esp + 0x1bc]
mov eax, dword [esp + 0x1cc]
lea edi, [esp + 0x1bc]
cmovae edx, dword [esp + 0x1bc]
add eax, edx
mov dword [esp + 0x16c], 0
cmp dword [esp + 0x1d0], 0x10
mov dword [esp + 0xc], eax
cmovae edi, dword [esp + 0x1bc]
xor ecx, ecx
sub eax, edi
mov dword [esp + 0x170], 7
mov word [esp + 0x15c], cx
cmp eax, 7
jbe 0x401ab2
mov byte [esp + 8], cl
lea ecx, [esp + 0x15c]
push dword [esp + 8]
push eax
call fcn.004042c0
mov dword [esp + 0x16c], 0
push dword [esp + 0xc]
lea ecx, [esp + 0x160]
push dword [esp + 0x10]
push edi
call fcn.00404210
cmp dword [esp + 0x170], 8
lea eax, [esp + 0x15c]
mov edi, dword [esp + 0x15c]
push 0
cmovae eax, edi
push 2
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 8], esi
cmp esi, 0xffffffff
je 0x401b86
lea eax, [esp + 0x2a0]
mov dword [esp + 0x2a0], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401b86
lea eax, [esp + 0x2a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x401b86
nop
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x2c4]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401b66
test dx, dx
je 0x401b62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401b66
add eax, 4
add ecx, 4
test dx, dx
jne 0x401b40
xor eax, eax
jmp 0x401b6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x401bfc
lea eax, [esp + 0x2a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401b30
xor esi, esi
push 0x40
lea eax, [esp + 0xe0]
mov dword [esp + 0xdc], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
cmp dword [esp + 0x144], 0x10
lea eax, [esp + 0x130]
cmovae eax, dword [esp + 0x130]
push ecx
lea ecx, [esp + 0xdc]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401c16
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
mov esi, dword [esp + 0x18]
jmp 0x401c29
push dword [esp + 8]
mov esi, dword [esp + 0x2ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x401c29
jmp 0x401b88
push 0x13
push str.FAIL_CreateProcessA
lea ecx, [esp + 0x1ac]
call fcn.00403130
cmp dword [esp + 0x1b4], 0
jne 0x401dcb
push esi
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401db8
mov ecx, dword [esp + 0x19c]
push 4
push 0x3000
inc ecx
push ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x401daf
cmp dword [esp + 0x1a0], 0x10
lea ecx, [esp + 0x18c]
mov eax, dword [esp + 0x19c]
cmovae ecx, dword [esp + 0x18c]
inc eax
push 0
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401d81
push 0
push 0
push dword [esp + 0x10]
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [esp + 0xc], eax
test eax, eax
je 0x401d78
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x170]
cmp eax, 8
jb 0x401d35
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x401d2b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e30
push ecx
push edi
call fcn.004044ff
add esp, 8
mov edx, dword [esp + 0x1d0]
cmp edx, 0x10
jb 0x401d71
mov ecx, dword [esp + 0x1bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401d67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e30
push edx
push ecx
call fcn.004044ff
add esp, 8
xor esi, esi
jmp 0x401ecd
push 0x17
push str.FAIL_CreateRemoteThread
jmp 0x401dbf
push 0x17
push str.FAIL_WriteProcessMemory
lea ecx, [esp + 0x1ac]
call fcn.00403130
push 0x8000
push 0
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401dcb
push 0x13
push str.FAIL_VirtualAllocEx
jmp 0x401dbf
push 0x10
push str.FAIL_OpenProcess
lea ecx, [esp + 0x1ac]
call fcn.00403130
mov eax, dword [esp + 0x170]
cmp eax, 8
jb 0x401e02
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x401df8
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e30
push ecx
push edi
call fcn.004044ff
add esp, 8
mov edx, dword [esp + 0x1d0]
cmp edx, 0x10
jb 0x401e40
mov ecx, dword [esp + 0x1bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401e36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401e36
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004044ff
add esp, 8
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x1b4], 0
jne 0x401ea5
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x1d4]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x401e9c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x1d4]
push eax
call edi
lea eax, [esp + 0x1d4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1e0]
push eax
call esi
test eax, eax
jne 0x401e70
mov esi, dword [esp + 0x1dc]
jmp 0x401ecd
cmp dword [esp + 0x1b8], 0x10
lea eax, [esp + 0x1a4]
push 0x10
cmovae eax, dword [esp + 0x1a8]
push str.c1cx
push eax
push 0
call edi
mov esi, 1
lea ecx, [esp + 0x20]
call fcn.00402040
mov edx, dword [esp + 0x144]
cmp edx, 0x10
jb 0x401f12
mov ecx, dword [esp + 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401f08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40200e
push edx
push ecx
call fcn.004044ff
add esp, 8
mov edx, dword [esp + 0x188]
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0xf
mov byte [esp + 0x130], 0
cmp edx, 0x10
jb 0x401f6c
mov ecx, dword [esp + 0x174]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401f62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40200e
push edx
push ecx
call fcn.004044ff
add esp, 8
mov edx, dword [esp + 0x1a0]
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], 0xf
mov byte [esp + 0x174], 0
cmp edx, 0x10
jb 0x401fc2
mov ecx, dword [esp + 0x18c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401fb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40200e
push edx
push ecx
call fcn.004044ff
add esp, 8
mov edx, dword [esp + 0x1b8]
mov dword [esp + 0x19c], 0
mov dword [esp + 0x1a0], 0xf
mov byte [esp + 0x18c], 0
cmp edx, 0x10
jb 0x40201e
mov ecx, dword [esp + 0x1a4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402014
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402014
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004044ff
add esp, 8
mov ecx, dword [esp + 0x5dc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004044be
mov esp, ebp
pop ebp
ret 0x10
call fcn.00403520
int3