Function at 0x4030c0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4994fe
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4be0a0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x14], edi
test byte [0x4c466c], 1
lea esi, [edi + 1]
jne 0x403122
or dword [0x4c466c], esi
push 0x4c4628
mov dword [esp + 0x58], edi
call fcn.00403370
push 0x49ced0
call fcn.0047d990
add esp, 4
mov dword [esp + 0x54], 0xffffffff
cmp byte [0x4c4670], 0
jne 0x40334b
lea eax, [esp + 0x14]
push eax
mov byte [0x4c4670], 1
mov dword [0x4c4628], 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 0x40334b
cmp dword [esp + 0x14], esi
mov ebp, esi
jle 0x403344
jmp 0x403175
xor edi, edi
lea esi, [edi + 1]
mov eax, dword [ebx + ebp*4]
cmp word [eax], 0x2f
jne 0x403220
push 0x4a1528
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0045e5f3
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 0x4031d9
push esi
mov ecx, 0x4c464c
lea edi, [esi + 0x1c]
call fcn.00403ec0
push 0xffffffffffffffff
push 0
push edi
call fcn.00402830
mov esi, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x54], 0xffffffff
cmp esi, edi
je 0x403207
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x28]
push ecx
mov eax, esi
call fcn.00405910
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call fcn.0047d710
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.0047d710
add esp, 4
mov eax, dword [ebx + ebp*4]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
je 0x403248
push str._embedded
push eax
call edi
test eax, eax
jne 0x403248
mov dword [0x4c4628], 2
jmp 0x403339
mov eax, dword [ebx + ebp*4]
test eax, eax
je 0x40326a
push str._console
push eax
call edi
test eax, eax
jne 0x40326a
mov dword [0x4c4628], 3
jmp 0x403339
mov eax, dword [ebx + ebp*4]
test eax, eax
je 0x40328c
push str._consoletool
push eax
call edi
test eax, eax
jne 0x40328c
mov dword [0x4c4628], 4
jmp 0x403339
mov esi, dword [ebx + ebp*4]
test esi, esi
je 0x40331f
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 0x40331f
mov ecx, dword [ebx + ebp*4]
push 0x4a1584
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0045e5f3
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 0x40330c
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
add eax, 0x1c
push 0
push eax
mov eax, 0x4c462c
call fcn.00402830
lea esi, [esp + 0x30]
mov dword [esp + 0x54], 0xffffffff
call fcn.00403e70
jmp 0x403339
mov eax, dword [ebx + ebp*4]
test eax, eax
je 0x403339
push 0x4a1588
push eax
call edi
test eax, eax
jne 0x403339
mov byte [0x4c4648], 1
inc ebp
cmp ebp, dword [esp + 0x14]
jl 0x403170
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x5c]
push esi
mov ecx, 0x4c4628
call fcn.00403440
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