Function at 0x401130
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
push 0x40550c
push 0
call dword [sym.imp.MSVCR100.dll_setlocale]
add esp, 8
mov eax, dword [ebp + 8]
mov dword [0x4054ec], eax
mov ecx, dword [ebp + 8]
lea edx, [ecx*4 + 4]
push edx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [0x4054e8], eax
mov eax, dword [ebp + 8]
lea ecx, [eax*4 + 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x4054e8]
push eax
call sub.MSVCR100.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.MSVCR100.dll_wcschr]
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4011cf
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov word [edx], cx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004015c0
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401820
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401210
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00401e50
add esp, 0xc
mov dword [ebp - 0x10], eax
jmp 0x401227
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00401d10
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40123d
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004016b0
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
call fcn.004016b0
add esp, 8
cmp dword [ebp - 0x14], 0
jle 0x40126b
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00401880
add esp, 0x10
cmp dword [0x4054f0], 0
je 0x401289
mov edx, dword [0x4054f0]
push edx
call dword [sym.imp.MSVCR100.dll__wcsdup]
add esp, 4
mov dword [ebp - 0x30], eax
jmp 0x401298
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401a00
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [0x4054fc], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00401920
add esp, 4
mov dword [0x4054f8], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [0x405508]
push ecx
call fcn.00401a80
add esp, 8
mov dword [0x405508], eax
cmp dword [0x405504], 0
je 0x401387
call fcn.00401d00
test eax, eax
je 0x401387
mov edx, dword [0x405144]
push edx
call dword [sym.imp.MSVCR100.dll_wcslen]
add esp, 4
mov esi, eax
mov eax, dword [0x4054fc]
push eax
call dword [sym.imp.MSVCR100.dll_wcslen]
add esp, 4
add esi, eax
lea ecx, [esi + esi + 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [0x4054fc]
push edx
mov eax, dword [0x405144]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll__swprintf]
add esp, 0xc
cmp dword [0x405500], 0
jne 0x40134f
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [0x4054fc]
push eax
call fcn.00403090
add esp, 8
jmp 0x401372
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [0x4054fc]
push edx
push 0x4051f8
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fwprintf]
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push 2
call dword [sym.imp.MSVCR100.dll_exit]
cmp dword [0x405508], 0
je 0x4013a2
mov ecx, dword [0x405508]
push ecx
call fcn.004031b0
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40144f
mov edx, dword [0x4050a0]
push edx
call dword [sym.imp.MSVCR100.dll_wcslen]
add esp, 4
mov esi, eax
mov eax, dword [0x4054fc]
push eax
call dword [sym.imp.MSVCR100.dll_wcslen]
add esp, 4
add esi, eax
lea ecx, [esi + esi + 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [0x4054fc]
push edx
mov eax, dword [0x4050a0]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll__swprintf]
add esp, 0xc
cmp dword [0x405500], 0
jne 0x401417
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [0x4054fc]
push eax
call fcn.00403090
add esp, 8
jmp 0x40143a
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [0x4054fc]
push edx
push 0x405208
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fwprintf]
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push 0x405218
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004031d0
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x401485
mov edx, dword [0x405508]
push edx
mov eax, dword [0x4054e8]
push eax
mov ecx, dword [0x4054ec]
push ecx
call dword [ebp - 0x20]
add esp, 0xc
jmp 0x4014d3
cmp dword [0x405500], 0
jne 0x4014a5
mov edx, dword [0x4050a4]
push edx
mov eax, dword [0x4054fc]
push eax
call fcn.00403090
add esp, 8
jmp 0x4014cb
mov ecx, dword [0x4050a4]
push ecx
mov edx, dword [0x4054fc]
push edx
push 0x405238
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fwprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push 0x405248
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004031d0
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x401507
mov ecx, dword [0x4054f4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x401555
cmp dword [0x405500], 0
jne 0x401528
mov ecx, dword [0x4050a4]
push ecx
mov edx, dword [0x4054fc]
push edx
call fcn.00403090
add esp, 8
jmp 0x40154d
mov eax, dword [0x4050a4]
push eax
mov ecx, dword [0x4054fc]
push ecx
push 0x405254
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fwprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004031c0
add esp, 4
mov eax, dword [0x405508]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov ecx, dword [0x4054f8]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, dword [0x4054fc]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret