Function at 0x401bc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
push 0x406614
push 0
call dword [sym.imp.MSVCRT.dll_setlocale]
add esp, 8
mov eax, dword [ebp + 8]
mov dword [0x4065f4], eax
mov ecx, dword [ebp + 8]
lea edx, [ecx*4 + 4]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [0x4065f8], eax
mov eax, dword [ebp + 8]
lea ecx, [eax*4 + 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x4065f8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0xd
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4 - 4]
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x401c5d
mov ecx, dword [ebp - 0x28]
mov byte [ecx], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401f6b
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040216a
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401c9e
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004038eb
add esp, 0xc
mov dword [ebp - 0x14], eax
jmp 0x401cb5
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00403830
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401ccb
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00402056
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00402056
add esp, 8
cmp dword [ebp - 0x18], 0
jle 0x401cf9
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004021c3
add esp, 0x10
cmp dword [0x4065fc], 0
je 0x401d17
mov ecx, dword [0x4065fc]
push ecx
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov dword [ebp - 0x30], eax
jmp 0x401d26
mov edx, dword [ebp - 0xc]
push edx
call fcn.004022f2
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [0x40660c], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040225e
add esp, 4
mov dword [0x406604], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [0x406608]
push eax
call fcn.0040236f
add esp, 8
mov dword [0x406608], eax
cmp dword [0x406608], 0
je 0x401d71
mov ecx, dword [0x406608]
push ecx
call fcn.004048f0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401e19
mov edx, dword [str.The__s_executable_launcher_was_unable_to_locate_its__ncompanion_shared_library.]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov esi, eax
mov eax, dword [0x40660c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
lea ecx, [esi + eax + 0xa]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [0x40660c]
push edx
mov eax, dword [str.The__s_executable_launcher_was_unable_to_locate_its__ncompanion_shared_library.]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
cmp dword [0x406610], 0
jne 0x401de2
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x40660c]
push eax
call fcn.00404820
add esp, 8
jmp 0x401e04
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x40660c]
push edx
push 0x4063b4
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push str.setInitialArgs
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040490e
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x401e4f
mov eax, dword [0x406608]
push eax
mov ecx, dword [0x4065f8]
push ecx
mov edx, dword [0x4065f4]
push edx
call dword [ebp - 0x2c]
add esp, 0xc
jmp 0x401e9c
cmp dword [0x406610], 0
jne 0x401e6f
mov eax, dword [str.There_was_a_problem_loading_the_shared_library_and__nfinding_the_entry_point.]
push eax
mov ecx, dword [0x40660c]
push ecx
call fcn.00404820
add esp, 8
jmp 0x401e94
mov edx, dword [str.There_was_a_problem_loading_the_shared_library_and__nfinding_the_entry_point.]
push edx
mov eax, dword [0x40660c]
push eax
push 0x4063cc
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x40
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 0x4063d4
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040490e
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401ecf
mov eax, dword [0x406600]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x24], eax
jmp 0x401f1c
cmp dword [0x406610], 0
jne 0x401eef
mov eax, dword [str.There_was_a_problem_loading_the_shared_library_and__nfinding_the_entry_point.]
push eax
mov ecx, dword [0x40660c]
push ecx
call fcn.00404820
add esp, 8
jmp 0x401f14
mov edx, dword [str.There_was_a_problem_loading_the_shared_library_and__nfinding_the_entry_point.]
push edx
mov eax, dword [0x40660c]
push eax
push str._s:_n_s_n
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x40
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov edx, dword [ebp - 0x20]
push edx
call fcn.004048ff
add esp, 4
mov eax, dword [0x406608]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [0x406604]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [0x40660c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 0x24]
pop esi
mov esp, ebp
pop ebp
ret