Function at 0x46ee2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x46ee35
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 0x1d], cl
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
call fcn.00405bac
xor eax, eax
push ebp
push 0x46f18b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00405c18
mov eax, esi
mov edx, 0x46f1a0
mov cl, 0x20
call fcn.004037fc
je 0x46eec4
cmp dword [ebp - 0xc], 0
je 0x46eec4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x46ee9c
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46ee9c
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00405160
movzx edx, word [eax]
cmp dx, 0x100
jae 0x46eec4
movzx edx, dl
bt dword [esi], edx
jae 0x46eec4
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x7fffffff
mov edx, 2
mov eax, dword [ebp - 0xc]
call fcn.00406358
cmp dword [ebp + 0xc], 0
jne 0x46eed9
call sub.kernel32.dll_GetCommandLineW_1
mov edx, eax
lea eax, [ebp + 0xc]
call fcn.00405d70
mov eax, dword [ebp + 0xc]
call fcn.0046ed88
mov ebx, eax
test ebx, ebx
jl 0x46f165
inc ebx
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
call fcn.0046edf8
mov eax, esi
mov edx, 0x46f1a0
mov cl, 0x20
call fcn.004037fc
jne 0x46ef15
mov al, 1
jmp 0x46ef56
cmp dword [ebp - 4], 0
je 0x46ef54
mov eax, dword [ebp - 4]
test eax, eax
je 0x46ef38
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46ef38
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405160
movzx edi, word [eax]
cmp di, 0x100
jae 0x46ef4c
mov eax, edi
movzx eax, al
bt dword [esi], eax
jb 0x46ef50
xor eax, eax
jmp 0x46ef56
mov al, 1
jmp 0x46ef56
xor eax, eax
test al, al
je 0x46f15b
mov eax, esi
mov edx, 0x46f1a0
mov cl, 0x20
call fcn.004037fc
je 0x46efb1
mov eax, dword [ebp - 4]
test eax, eax
je 0x46ef8b
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46ef8b
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405160
movzx edi, word [eax]
cmp di, 0x100
jae 0x46efb1
mov eax, edi
movzx eax, al
bt dword [esi], eax
jae 0x46efb1
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00406428
cmp byte [ebp + 8], 0
je 0x46eff8
mov edx, dword [ebp - 4]
mov eax, 0x46f1cc
call fcn.00406670
mov edi, eax
test edi, edi
jle 0x46efe0
lea eax, [ebp - 8]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00406358
jmp 0x46f00e
lea eax, [ebp - 8]
push eax
mov ecx, 0x7fffffff
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00406358
jmp 0x46f00e
lea eax, [ebp - 8]
push eax
mov ecx, 0x7fffffff
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00406358
cmp byte [ebp - 0x1d], 0
je 0x46f0bd
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00405c18
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00405c18
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x46f04b
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46f04b
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x10]
call fcn.00405160
mov edi, eax
test edi, edi
je 0x46f056
sub edi, 4
mov edi, dword [edi]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x46f073
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46f073
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x14]
call fcn.00405160
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x46f087
mov eax, dword [ebp - 0x28]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00405c50
push eax
push edi
mov eax, dword [ebp - 0x10]
call fcn.00405c50
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringW_1
sub eax, 2
test eax, eax
jne 0x46f15b
mov ebx, dword [ebp - 0x24]
jmp 0x46f168
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00405c18
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00405c18
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46f0f0
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46f0f0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.00405160
mov edi, eax
test edi, edi
je 0x46f0fb
sub edi, 4
mov edi, dword [edi]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46f118
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46f118
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
call fcn.00405160
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x46f12c
mov eax, dword [ebp - 0x2c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405c50
push eax
push edi
mov eax, dword [ebp - 0x18]
call fcn.00405c50
push eax
push 0
push 0x400
call sub.kernel32.dll_CompareStringW_1
sub eax, 2
test eax, eax
jne 0x46f15b
mov ebx, dword [ebp - 0x24]
jmp 0x46f168
inc dword [ebp - 0x24]
dec ebx
jne 0x46eef3
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f192
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00405bbc
lea eax, [ebp + 0xc]
call fcn.00405bb4
ret