Function at 0x46f810
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49184b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4b6798]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x4b6798]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x46fa71
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x14], edi
jle 0x46fa6a
mov eax, dword [eax + ecx*4]
xor ecx, ecx
mov word [esp + 0x20], cx
mov ebx, 7
mov ecx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x46f8a0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x24]
call fcn.00409bc0
mov dword [esp + 0xa0], edi
xor edx, edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], dx
push 1
push 0x49c3c8
mov eax, esi
push eax
xor eax, eax
mov byte [esp + 0xac], 1
call fcn.00403340
test eax, eax
jne 0x46fa21
push 0xffffffffffffffff
lea ecx, [eax + 1]
lea esi, [esp + 0x78]
lea edx, [esp + 0x24]
call fcn.00402e20
mov edi, eax
lea esi, [esp + 0x20]
mov byte [esp + 0xa0], 2
call fcn.004030e0
mov byte [esp + 0xa0], 1
cmp dword [esp + 0x88], 8
jb 0x46f934
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004736d0
add esp, 4
push 1
push 0x49be40
lea edx, [esp + 0x28]
push edx
xor eax, eax
call fcn.00403340
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46f9ec
push 0xffffffffffffffff
lea ecx, [ebx + 1]
lea esi, [esp + 0x78]
lea edx, [esp + 0x24]
call fcn.00402e20
mov edi, eax
lea esi, [esp + 0x3c]
mov byte [esp + 0xa0], 3
call fcn.004030e0
mov byte [esp + 0xa0], 1
cmp dword [esp + 0x88], 8
jb 0x46f996
mov eax, dword [esp + 0x74]
push eax
call fcn.004736d0
add esp, 4
push ebx
xor ecx, ecx
lea esi, [esp + 0x5c]
lea edx, [esp + 0x24]
call fcn.00402e20
mov edi, eax
lea esi, [esp + 0x20]
mov byte [esp + 0xa0], 4
call fcn.004030e0
mov byte [esp + 0xa0], 1
cmp dword [esp + 0x6c], 8
jb 0x46f9d5
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004736d0
add esp, 4
xor edx, edx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], dx
push 0x4e1a70
lea ecx, [esp + 0x24]
call fcn.00421c80
mov ecx, eax
push 0
lea eax, [esp + 0x40]
push eax
or eax, 0xffffffff
call fcn.004097e0
cmp dword [esp + 0x50], 8
jb 0x46fa1f
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004736d0
add esp, 4
xor edi, edi
xor edx, edx
mov dword [esp + 0xa0], 0xffffffff
cmp dword [esp + 0x34], 8
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], dx
jb 0x46fa53
mov eax, dword [esp + 0x20]
push eax
call fcn.004736d0
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x14]
jl 0x46f880
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004736db
mov esp, ebp
pop ebp
ret