Function at 0x409708
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push edi
mov dword [ebp - 0x158], ecx
mov byte [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0xb], eax
mov byte [ebp - 0x114], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 4], eax
push 0x20
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x409890
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 0x14
jne 0x409890
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], 0
push 4
mov edx, dword [ebp - 0x11c]
push edx
lea eax, [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x120], eax
push 5
push 0
lea edx, [ebp - 0xc]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x11c]
add eax, 5
mov dword [ebp - 0x11c], eax
push 4
mov ecx, dword [ebp - 0x11c]
push ecx
lea edx, [ebp - 0xc]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x409854
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x124]
mov dword [ecx + 0x1d4], edx
cmp dword [ebp - 0x120], 1
jne 0x40988b
mov ecx, dword [ebp - 0x158]
call fcn.0040a5fc
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
add eax, 3
push eax
mov ecx, dword [ebp - 0x158]
call fcn.0040d579
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x4099fa
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x14c], 0x4534bc
mov dword [ebp - 0x128], 0x4534c0
mov byte [ebp - 0x148], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x147]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], 0
cmp dword [ebp - 0x150], 0
je 0x4099fa
mov eax, dword [ebp - 0x14c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x150]
add ecx, eax
mov dword [ebp - 0x150], ecx
push 0x4534c4
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x4099fa
mov eax, dword [ebp - 0x154]
sub eax, dword [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
lea edx, [ebp - 0x148]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ecx, dword [ebp - 0x158]
mov dword [ecx + 0x1d8], eax
mov edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x154]
add eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x4099fa
mov ecx, dword [ebp - 0x128]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x150]
add edx, eax
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x150]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ecx, dword [ebp - 0x158]
mov dword [ecx + 0x1d4], eax
pop edi
mov esp, ebp
pop ebp
ret