Function at 0x403010
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x46ebf8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4871a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x403050
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x403050
xor al, al
jmp 0x40325e
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x403049
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x28], ecx
jle 0x403255
lea esp, [esp]
mov eax, dword [eax + ecx*4]
cmp word [eax], 0x2f
jne 0x40323e
lea ebx, [eax + 2]
lea esi, [esp + 0x18]
call fcn.0040d470
mov dword [esp + 0x38], 0
mov eax, dword [0x48b9d0]
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x38], 2
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 8], 0
jle 0x403189
push 0x3a
push ebp
call fcn.00450e7b
add esp, 8
test eax, eax
je 0x403189
sub eax, ebp
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403189
lea edx, [ebx + 1]
lea esi, [esp + 0x20]
lea eax, [esp + 0x18]
call fcn.0040dea0
mov edi, eax
lea eax, [esp + 0x14]
mov byte [esp + 0x38], 3
call fcn.0040dec0
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x20]
lea edx, [eax - 0xc]
cmp edx, 0x48b9c0
je 0x403135
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403135
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.004501ef
add esp, 4
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
lea ebx, [esp + 0x1c]
call fcn.0040e020
mov edi, eax
lea eax, [esp + 0x44]
mov byte [esp + 0x38], 4
call fcn.0040dec0
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xc]
cmp ecx, 0x48b9c0
je 0x403196
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403196
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.004501ef
add esp, 4
jmp 0x403196
lea edi, [esp + 0x18]
lea eax, [esp + 0x44]
call fcn.0040dec0
lea eax, [esp + 0x14]
call fcn.00406340
push 0x22
lea eax, [esp + 0x18]
call fcn.004062e0
lea edi, [esp + 0x44]
call fcn.0040df40
mov esi, dword [esp + 0x44]
push esi
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, dword [esp + 0x40]
mov edx, edi
push edx
call fcn.00408510
lea edi, [esp + 0x14]
call fcn.0040dec0
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x48b9c0
je 0x4031fb
lea edi, [eax - 0xc]
push edi
call ebx
test eax, eax
jg 0x4031fb
push edi
call fcn.004501ef
add esp, 4
lea edx, [esi - 0xc]
cmp edx, 0x48b9c0
je 0x403219
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x403219
push esi
call fcn.004501ef
add esp, 4
lea eax, [ebp - 0xc]
mov dword [esp + 0x38], 0xffffffff
cmp eax, 0x48b9c0
je 0x40323e
lea esi, [ebp - 0xc]
push esi
call ebx
test eax, eax
jg 0x40323e
push esi
call fcn.004501ef
add esp, 4
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
inc ecx
cmp ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
jl 0x403080
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8