Function at 0x40ce00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48b08e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4a9070]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
test byte [0x4aea54], 1
lea esi, [ebx + 1]
jne 0x40ce67
or dword [0x4aea54], esi
push 0x4aea10
mov dword [esp + 0x5c], ebx
call fcn.0040d0c0
push 0x48da00
call fcn.0046fe99
add esp, 4
mov dword [esp + 0x58], 0xffffffff
cmp byte [0x4aea58], 0
jne 0x40d09a
lea eax, [esp + 0x14]
push eax
mov byte [0x4aea58], 1
mov dword [0x4aea10], esi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, ebx
je 0x40d09a
cmp dword [esp + 0x14], esi
mov ebx, esi
jle 0x40d093
jmp 0x40ceb8
mov esi, 1
mov eax, dword [edi + ebx*4]
cmp word [eax], 0x2f
jne 0x40cf6b
push 0x4917d8
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0041ed1a
add esp, 0xc
mov dword [esp + 0x58], esi
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
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 0x40cf1e
push esi
mov ecx, 0x4aea34
lea edi, [esi + 0x1c]
call fcn.00415a60
push 0xffffffffffffffff
push 0
push edi
call fcn.00404d30
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x58], 0xffffffff
cmp esi, eax
je 0x40cf52
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
push ecx
mov eax, esi
call fcn.00406ed0
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call fcn.004700ac
mov edi, dword [esp + 0x1c]
add esp, 4
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.004700ac
add esp, 4
mov eax, dword [edi + ebx*4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40cf93
push str._embedded
push eax
call esi
test eax, eax
jne 0x40cf93
mov dword [0x4aea10], 2
jmp 0x40d088
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x40cfb5
push str._console
push eax
call esi
test eax, eax
jne 0x40cfb5
mov dword [0x4aea10], 3
jmp 0x40d088
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x40cfd7
push str._consoletool
push eax
call esi
test eax, eax
jne 0x40cfd7
mov dword [0x4aea10], 4
jmp 0x40d088
mov esi, dword [edi + ebx*4]
test esi, esi
je 0x40d06a
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 0x40d06a
mov ecx, dword [edi + ebx*4]
push 0x491834
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041ed1a
add esp, 0xc
mov dword [esp + 0x58], 2
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x40]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x40d057
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
add eax, 0x1c
push 0
push eax
mov eax, 0x4aea14
call fcn.00404d30
lea esi, [esp + 0x34]
mov dword [esp + 0x58], 0xffffffff
call fcn.00404480
jmp 0x40d088
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x40d088
push 0x491838
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40d088
mov byte [0x4aea30], 1
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x40ceb3
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x4aea10
call fcn.0040d190
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret