Function at 0x401bd0
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 fcn.00404604
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 0x401c6d
mov ecx, dword [ebp - 0x28]
mov byte [ecx], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401f7b
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040217a
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401cae
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004036bb
add esp, 0xc
mov dword [ebp - 0x14], eax
jmp 0x401cc5
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00403600
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401cdb
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00402066
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00402066
add esp, 8
cmp dword [ebp - 0x18], 0
jle 0x401d09
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.004021d3
add esp, 0x10
cmp dword [0x4065fc], 0
je 0x401d27
mov ecx, dword [0x4065fc]
push ecx
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov dword [ebp - 0x30], eax
jmp 0x401d36
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040230b
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.0040226e
add esp, 4
mov dword [0x406604], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [0x406608]
push eax
call fcn.00402391
add esp, 8
mov dword [0x406608], eax
cmp dword [0x406608], 0
je 0x401d81
mov ecx, dword [0x406608]
push ecx
call fcn.0040448c
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401e29
mov edx, dword [str.The__s_executable_launcher_was_unable_to_locate_its__ncompanion_shared_library.]
push edx
call fcn.0040460a
add esp, 4
mov esi, eax
mov eax, dword [0x40660c]
push eax
call fcn.0040460a
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 0x401df2
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x40660c]
push eax
call fcn.004043c0
add esp, 8
jmp 0x401e14
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.004044aa
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x401e5f
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 0x401eac
cmp dword [0x406610], 0
jne 0x401e7f
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.004043c0
add esp, 8
jmp 0x401ea4
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.004044aa
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401edf
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 0x401f2c
cmp dword [0x406610], 0
jne 0x401eff
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.004043c0
add esp, 8
jmp 0x401f24
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.0040449b
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