Function at 0x401118
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 0x405410
push 0
call dword [sym.imp.MSVCRT.dll_setlocale]
add esp, 8
mov eax, dword [ebp + 8]
mov dword [0x4053f0], 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 [0x4053f4], eax
mov eax, dword [ebp + 8]
lea ecx, [eax*4 + 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x4053f4]
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_wcschr]
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4011b7
mov ecx, dword [ebp - 0x28]
mov word [ecx], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.004014d0
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004016d4
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4011f8
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00401cb0
add esp, 0xc
mov dword [ebp - 0x14], eax
jmp 0x40120f
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401b90
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401225
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.004015c0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.004015c0
add esp, 8
cmp dword [ebp - 0x18], 0
jle 0x401253
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.0040172d
add esp, 0x10
cmp dword [0x4053f8], 0
je 0x401271
mov ecx, dword [0x4053f8]
push ecx
call dword [sym.imp.MSVCRT.dll__wcsdup]
add esp, 4
mov dword [ebp - 0x30], eax
jmp 0x401280
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040188e
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [0x405404], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004017c8
add esp, 4
mov dword [0x405400], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [0x40540c]
push eax
call fcn.0040190e
add esp, 8
mov dword [0x40540c], eax
cmp dword [0x40540c], 0
je 0x4012cb
mov ecx, dword [0x40540c]
push ecx
call fcn.00402f8f
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401377
mov edx, dword [0x405010]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
mov eax, dword [0x405404]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
add esi, eax
lea ecx, [esi + esi + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [0x405404]
push edx
mov eax, dword [0x405010]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
cmp dword [0x405408], 0
jne 0x401340
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x405404]
push eax
call fcn.00402e80
add esp, 8
jmp 0x401362
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x405404]
push edx
push 0x405154
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fwprintf]
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 0x405164
mov edx, dword [ebp - 0x20]
push edx
call fcn.00402fad
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4013ad
mov eax, dword [0x40540c]
push eax
mov ecx, dword [0x4053f4]
push ecx
mov edx, dword [0x4053f0]
push edx
call dword [ebp - 0x2c]
add esp, 0xc
jmp 0x4013fa
cmp dword [0x405408], 0
jne 0x4013cd
mov eax, dword [0x405014]
push eax
mov ecx, dword [0x405404]
push ecx
call fcn.00402e80
add esp, 8
jmp 0x4013f2
mov edx, dword [0x405014]
push edx
mov eax, dword [0x405404]
push eax
push 0x405184
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x40
push ecx
call dword [sym.imp.MSVCRT.dll_fwprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 0x405194
mov edx, dword [ebp - 0x20]
push edx
call fcn.00402fad
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40142d
mov eax, dword [0x4053fc]
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 0x40147a
cmp dword [0x405408], 0
jne 0x40144d
mov eax, dword [0x405014]
push eax
mov ecx, dword [0x405404]
push ecx
call fcn.00402e80
add esp, 8
jmp 0x401472
mov edx, dword [0x405014]
push edx
mov eax, dword [0x405404]
push eax
push 0x4051a0
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x40
push ecx
call dword [sym.imp.MSVCRT.dll_fwprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov edx, dword [ebp - 0x20]
push edx
call fcn.00402f9e
add esp, 4
mov eax, dword [0x40540c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [0x405400]
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 [0x405404]
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