Function at 0x403020
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x46a30e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x481330]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x14], edi
test byte [0x48689c], 1
lea esi, [edi + 1]
jne 0x403082
or dword [0x48689c], esi
push 0x486858
mov dword [esp + 0x58], edi
call fcn.004032d0
push 0x46aef0
call fcn.00451990
add esp, 4
mov dword [esp + 0x54], 0xffffffff
cmp byte [0x486298], 0
jne 0x4032ab
lea eax, [esp + 0x14]
push eax
mov byte [0x486298], 1
mov dword [0x486858], esi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
je 0x4032ab
cmp dword [esp + 0x14], esi
mov ebp, esi
jle 0x4032a4
jmp 0x4030d5
xor edi, edi
lea esi, [edi + 1]
mov eax, dword [ebx + ebp*4]
cmp word [eax], 0x2f
jne 0x403180
push 0x46dfc0
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040b327
add esp, 0xc
mov dword [esp + 0x54], esi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x403139
push esi
mov ecx, 0x48687c
lea edi, [esi + 0x1c]
call fcn.00406260
push 0xffffffffffffffff
push 0
push edi
call fcn.00401b80
mov esi, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x54], 0xffffffff
cmp esi, edi
je 0x403167
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x28]
push ecx
mov eax, esi
call fcn.00409750
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call fcn.0045164f
add esp, 4
xor edi, edi
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.0045164f
add esp, 4
mov eax, dword [ebx + ebp*4]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
je 0x4031a8
push str._embedded
push eax
call edi
test eax, eax
jne 0x4031a8
mov dword [0x486858], 2
jmp 0x403299
mov eax, dword [ebx + ebp*4]
test eax, eax
je 0x4031ca
push str._console
push eax
call edi
test eax, eax
jne 0x4031ca
mov dword [0x486858], 3
jmp 0x403299
mov eax, dword [ebx + ebp*4]
test eax, eax
je 0x4031ec
push str._consoletool
push eax
call edi
test eax, eax
jne 0x4031ec
mov dword [0x486858], 4
jmp 0x403299
mov esi, dword [ebx + ebp*4]
test esi, esi
je 0x40327f
push str._class
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str._class
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
neg eax
sbb eax, eax
add eax, 1
je 0x40327f
mov ecx, dword [ebx + ebp*4]
push 0x46e01c
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0040b327
add esp, 0xc
mov dword [esp + 0x54], 2
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x40326c
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
add eax, 0x1c
push 0
push eax
mov eax, 0x48685c
call fcn.00401b80
lea esi, [esp + 0x30]
mov dword [esp + 0x54], 0xffffffff
call fcn.004061d0
jmp 0x403299
mov eax, dword [ebx + ebp*4]
test eax, eax
je 0x403299
push 0x46e020
push eax
call edi
test eax, eax
jne 0x403299
mov byte [0x486878], 1
inc ebp
cmp ebp, dword [esp + 0x14]
jl 0x4030d0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x5c]
push esi
mov ecx, 0x486858
call fcn.004033a0
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret