Function at 0x59c930
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xf4
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x59c95a
mov eax, dword [ecx]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x59c9cd
mov edi, eax
xor eax, eax
dec eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x30], xmm0
movdqu xmmword [ebp - 0x40], xmm0
mov esi, dword [edi]
test esi, esi
je 0x59cddb
push esi
call fcn.0056ac44
add esp, 4
lea ebx, [ebp - 0xf8]
mov ecx, ebx
push eax
push esi
call fcn.00508430
lea ecx, [ebp - 0x40]
push ebx
call fcn.004928f0
mov ecx, ebx
call fcn.00508510
mov eax, dword [ebp - 0x18]
cmp eax, 2
jl 0x59c9d6
xor esi, esi
inc esi
mov dword [ebp - 0x100], edi
jmp 0x59cb5b
xor eax, eax
mov byte [esi], al
mov byte [esi + 0x28], al
jmp 0x59c9fa
mov esi, dword [ebp + 8]
mov ecx, esi
lea eax, [ebp - 0x40]
push eax
call fcn.00492ce0
mov byte [esi + 0x28], 1
lea ecx, [ebp - 0x40]
call fcn.00492d90
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, esi
add esp, 0xf4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x26
push 0x6d791c
call fcn.00507a00
add esp, 8
test eax, eax
jle 0x59ca70
mov ecx, ebx
push 0xffffffffffffffff
push 0x41b
push 0x6d791c
call fcn.004904a0
push 0x1f
push 0x6d7c2e
lea eax, [ebp - 0xf0]
push eax
call fcn.004e58e0
add esp, 0xc
push dword [ebp + 0xc]
push eax
call fcn.0048e940
add esp, 8
push 1
push 0x6d1a32
push eax
call fcn.004e58e0
add esp, 0xc
mov ecx, ebx
call fcn.00490980
mov eax, dword [ebp + 8]
xor ecx, ecx
mov byte [eax], cl
mov byte [eax + 0x28], cl
xor ebx, ebx
inc ebx
cmp byte [ebp - 0x4d], 0
jns 0x59cb35
push dword [ebp - 0x58]
call fcn.0054fc10
add esp, 4
jmp 0x59cb35
mov ebx, dword [edi + esi*4]
test ebx, ebx
je 0x59cddb
push ebx
call fcn.0056ac44
add esp, 4
push eax
push ebx
lea ebx, [ebp - 0xf8]
push ebx
call fcn.00500470
add esp, 0xc
movsx eax, byte [ebp - 0xed]
mov edx, ebx
test eax, eax
jns 0x59cad5
mov eax, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xf8]
test eax, eax
js 0x59cddb
sete cl
test edx, edx
setne ch
or ch, cl
je 0x59cddb
lea ecx, [ebp - 0x40]
push eax
push edx
call fcn.005ce680
cmp byte [ebp - 0xed], 0
jns 0x59cb0e
push dword [ebp - 0xf8]
call fcn.0054fc10
add esp, 4
mov ebx, 4
jmp 0x59cb35
test cl, cl
jns 0x59cb22
push eax
call fcn.0054fc10
add esp, 4
mov edi, dword [ebp - 0x100]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov byte [eax], cl
mov byte [eax + 0x28], cl
xor ebx, ebx
inc ebx
cmp byte [ebp - 0x41], 0
jns 0x59cb46
push dword [ebp - 0x4c]
call fcn.0054fc10
add esp, 4
test bl, 3
jne 0x59c9e8
inc esi
mov eax, dword [ebp - 0x18]
cmp esi, eax
jge 0x59c9d6
xor ecx, ecx
dec ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
dec eax
mov edx, 0x6d1950
cmp esi, eax
jge 0x59cb75
mov edx, dword [edi + esi*4 + 4]
mov ebx, esi
mov esi, edi
lea ecx, [ebp - 0x4c]
push edx
call fcn.004f1b80
lea edi, [ebp - 0xf8]
mov ecx, edi
push dword [esi + ebx*4]
mov esi, ebx
call fcn.004f1b80
mov cl, byte [ebp - 0xed]
test cl, cl
mov eax, dword [ebp - 0xf8]
cmovs edi, eax
cmp word [edi], 0x2d
je 0x59cb15
cmp byte [ebp - 0x41], 0
lea edx, [ebp - 0x4c]
jns 0x59cbbb
mov edx, dword [ebp - 0x4c]
movzx ebx, word [edx]
test cl, cl
mov edi, dword [ebp - 0x100]
jns 0x59cbd1
push eax
call fcn.0054fc10
add esp, 4
cmp bx, 0x2d
je 0x59cb28
lea ebx, [ebp - 0xf8]
mov ecx, ebx
push dword [edi + esi*4]
call fcn.004f1b80
cmp byte [ebp - 0xed], 0
mov eax, dword [ebp - 0xf8]
cmovs ebx, eax
movzx ebx, word [ebx]
jns 0x59cc09
push eax
call fcn.0054fc10
add esp, 4
cmp bx, 0x2f
jne 0x59ca97
xor eax, eax
dec eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov ebx, dword [edi + esi*4]
add ebx, 2
je 0x59cddb
push ebx
call fcn.0056ac44
add esp, 4
push eax
push ebx
lea eax, [ebp - 0x58]
push eax
call fcn.00500470
add esp, 0xc
movsx ecx, byte [ebp - 0x4d]
mov eax, ecx
test ecx, ecx
jns 0x59cc4f
mov eax, dword [ebp - 0x54]
test eax, eax
lea ebx, [ebp - 0xf8]
je 0x59ca11
xor edx, edx
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xf4], edx
mov dword [ebp - 0xf0], edx
lea edx, [ebp - 0x58]
test cl, cl
jns 0x59cc7b
mov edx, dword [ebp - 0x58]
test eax, eax
js 0x59cddb
test edx, edx
je 0x59cddb
push ebx
push 0xa
push 0x3d
push eax
push edx
call fcn.0048f060
add esp, 0x14
test al, al
je 0x59cd3a
mov eax, dword [ebp - 0xf8]
cmp dword [ebp - 0xf4], eax
je 0x59cddb
movsx edx, byte [eax + 0x17]
test edx, edx
js 0x59cd2a
lea ebx, [eax + 0xc]
test edx, edx
sete cl
test ebx, ebx
setne ch
or ch, cl
je 0x59cddb
mov dword [ebp - 0xfc], ebx
movsx ebx, byte [eax + 0xb]
test ebx, ebx
jns 0x59ccec
mov ebx, dword [eax + 4]
test ebx, ebx
js 0x59cddb
mov eax, dword [eax]
test ebx, ebx
sete cl
test eax, eax
setne ch
or ch, cl
je 0x59cddb
lea ecx, [ebp - 0x40]
push edx
push dword [ebp - 0xfc]
push ebx
push eax
call fcn.00493a70
lea eax, [ebp - 0xf8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
call fcn.004eea50
mov ebx, 4
jmp 0x59ca7d
mov edx, dword [eax + 0x10]
test edx, edx
js 0x59cddb
mov ebx, dword [eax + 0xc]
jmp 0x59ccbf
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
call fcn.004eea50
movsx eax, byte [ebp - 0x41]
lea ecx, [ebp - 0x4c]
test eax, eax
jns 0x59cd53
mov ecx, dword [ebp - 0x4c]
cmp word [ecx], 0x2f
je 0x59cda7
test al, al
jns 0x59cd60
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x59cda7
js 0x59cddb
mov dword [ebp - 0xfc], ecx
test ecx, ecx
je 0x59cddb
movsx ebx, byte [ebp - 0x4d]
test ebx, ebx
cmovs ebx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
cmovns edx, ecx
test ebx, ebx
js 0x59cddb
sete cl
test edx, edx
setne ch
or ch, cl
je 0x59cddb
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0xfc]
push ebx
push edx
call fcn.00493160
inc esi
jmp 0x59cdd4
movsx eax, byte [ebp - 0x4d]
test eax, eax
cmovs eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
cmovns edx, ecx
test eax, eax
js 0x59cddb
sete cl
test edx, edx
setne ch
or ch, cl
je 0x59cddb
lea ecx, [ebp - 0x40]
push eax
push edx
call fcn.00493100
xor ebx, ebx
jmp 0x59ca7d
ud2