Function at 0x5986b8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x5986c1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x5986db
add esp, 0xfffffff0
call fcn.00406060
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x598a81
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00595c20
mov al, byte [0x598aac]
mov byte [ebp - 0xd], al
mov byte [ebp - 0x1d], 0
lea eax, [ebp - 0x1d]
push eax
mov ecx, 0x598ab0
mov eax, 0x649b08
mov edx, 0x20
call fcn.00594608
mov dword [0x649b04], eax
mov eax, dword [ebp - 4]
call fcn.00595df8
test al, al
jne 0x598a59
call sub.kernel32.dll_GetCommandLineW_1
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.0040839c
lea edx, [ebp - 0x24]
mov eax, dword [0x5c1b68]
call fcn.0040b404
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.0040891c
test eax, eax
jle 0x5988ee
lea edx, [ebp - 0x28]
mov eax, dword [0x5c1b68]
call fcn.0040b404
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x5c24dc]
call fcn.0040b404
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00408548
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
call fcn.0040891c
test eax, eax
setg al
xor al, 1
mov byte [ebp - 0xe], al
lea edx, [ebp - 0x30]
mov eax, dword [0x5c22f4]
call fcn.0040b404
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
call fcn.0040891c
test eax, eax
jle 0x59880d
lea edx, [ebp - 0x34]
mov eax, dword [0x5c22f4]
call fcn.0040b404
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [0x5c24dc]
call fcn.0040b404
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00408548
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
call fcn.0040891c
test eax, eax
jle 0x598802
mov al, byte [0x598b00]
or al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x59880d
mov al, byte [0x598b04]
or al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
lea edx, [ebp - 0x3c]
mov eax, dword [0x5c1c64]
call fcn.0040b404
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
call fcn.0040891c
test eax, eax
jle 0x5988be
lea edx, [ebp - 0x40]
mov eax, dword [0x5c1c64]
call fcn.0040b404
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x44]
mov eax, dword [0x5c2218]
call fcn.0040b404
mov edx, dword [ebp - 0x44]
pop eax
call fcn.00408548
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x14]
call fcn.0040891c
test eax, eax
jle 0x598870
mov al, byte [0x598b08]
or al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x5988be
lea edx, [ebp - 0x48]
mov eax, dword [0x5c1c64]
call fcn.0040b404
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [0x5c24dc]
call fcn.0040b404
mov edx, dword [ebp - 0x4c]
pop eax
call fcn.00408548
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x14]
call fcn.0040891c
test eax, eax
jle 0x5988b3
mov al, byte [0x598b0c]
or al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x5988be
mov al, byte [0x598b10]
or al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
lea edx, [ebp - 0x50]
mov eax, dword [0x5c1a68]
call fcn.0040b404
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x14]
call fcn.0040891c
test eax, eax
jle 0x598a39
mov al, byte [0x598b14]
or al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x598a39
cmp byte [ebp - 0x1d], 0
je 0x598a2f
lea edx, [ebp - 0x54]
mov eax, dword [0x5c1cbc]
call fcn.0040b404
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x18]
mov edx, dword [0x649afc]
call fcn.004085a0
xor eax, eax
push ebp
push 0x598a23
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x460d64]
call fcn.00461120
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x598a12
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea edx, [ebp - 0x58]
mov eax, dword [0x5c1b68]
call fcn.0040b404
mov eax, dword [ebp - 0x58]
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [0x5c1fb0]
call fcn.0040b404
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x1c]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov byte [ebp - 0xe], al
push 0
lea edx, [ebp - 0x60]
mov eax, dword [0x5c22f4]
call fcn.0040b404
mov eax, dword [ebp - 0x60]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [0x5c1fb0]
call fcn.0040b404
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x1c]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x14]
test al, al
je 0x5989b0
mov al, byte [0x598b04]
or al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x5989bb
mov al, byte [0x598b00]
or al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
push 4
lea edx, [ebp - 0x68]
mov eax, dword [0x5c1c64]
call fcn.0040b404
mov eax, dword [ebp - 0x68]
push eax
lea edx, [ebp - 0x6c]
mov eax, dword [0x5c1fb0]
call fcn.0040b404
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x1c]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, eax
lea eax, [ebp - 0x70]
mov cl, 1
call fcn.004056b0
mov al, byte [ebp - 0x70]
or al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x598a19
mov eax, dword [ebp - 0x1c]
call fcn.00405a54
ret
mov eax, dword [0x649b04]
mov eax, dword [eax]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0xe]
and al, byte [ebp - 0x1d]
je 0x598a4b
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00598cbc
mov cl, byte [ebp - 0xd]
mov dl, byte [ebp - 0xe]
mov eax, dword [ebp - 4]
call fcn.005993dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x598a88
lea eax, [ebp - 0x6c]
mov edx, 0x13
call fcn.00407758
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00407758
ret