Function at 0x4314d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499ccd
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 0x29], bl
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x43167f
xor ebx, ebx
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x3c], ebx
jle 0x431678
mov edx, dword [eax + ebx*4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431560
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402db0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp edi, 8
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x44], eax
cmp ecx, 0x10
jb 0x43162a
add ecx, 0xfffffff1
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x40], ecx
lea ebx, [ebx]
mov edx, ecx
mov esi, 0
sub edx, eax
sar edx, 1
je 0x4315d4
cmp word [eax], 0x2f
je 0x4315d2
cmp edx, 1
je 0x4315d4
add eax, 2
dec edx
cmp word [eax], 0x2f
jne 0x4315c3
mov esi, eax
mov eax, esi
test eax, eax
je 0x431621
movzx edx, word [eax]
mov edi, 0x2f
mov esi, 0x10
mov ecx, str._startup_source
cmp edx, edi
jb 0x43160f
mov ebx, eax
sub ebx, ecx
cmp dx, di
ja 0x43160f
cmp esi, 1
je 0x431617
movzx edx, word [ebx + ecx + 2]
add ecx, 2
dec esi
movzx edi, word [ecx]
cmp dx, di
jae 0x4315f7
mov ecx, dword [ebp - 0x40]
add eax, 2
jmp 0x4315b0
sub eax, dword [ebp - 0x44]
sar eax, 1
cmp eax, 0xffffffff
jne 0x43169d
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
cmp edi, 8
jb 0x431665
lea ecx, [edi*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43165b
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4316ff
push ecx
push edx
call fcn.0046d9fd
add esp, 8
mov eax, dword [ebp - 0x34]
inc ebx
mov dword [ebp - 0x38], ebx
cmp ebx, dword [ebp - 0x3c]
jl 0x431537
mov bl, byte [ebp - 0x29]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x4316bf
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.00402db0
mov edx, dword [ebp - 0x28]
jmp 0x4316c2
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
mov bl, 1
cmp ecx, 8
jb 0x4316f7
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4316ed
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4316ff
push ecx
push edx
call fcn.0046d9fd
add esp, 8
mov eax, dword [ebp - 0x34]
jmp 0x431678
call fcn.00478f8e
int3