Function at 0x46ae8c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
push 0x20a
push 0
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapAlloc
mov ebx, eax
push 0x105
push ebx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x46aec3
inc dword [esp + 8]
push ebx
push 0
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapFree
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [esp], eax
xor edi, edi
xor esi, esi
or ebx, 0xffffffff
jmp 0x46b010
test esi, esi
je 0x46af1d
mov eax, ebx
mov edx, esi
shl eax, 2
add edx, edx
add eax, edx
push eax
push 0
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapAlloc
mov edi, eax
lea eax, [edi + ebx*4]
mov dword [esp + 4], eax
mov edx, dword [esp + 4]
mov dword [edi], edx
mov ecx, dword [esp + 8]
add ecx, ecx
add dword [esp + 4], ecx
jmp 0x46af28
mov eax, dword [esp]
mov dword [esp + 4], eax
mov esi, dword [esp + 8]
mov eax, dword [esp]
xor edx, edx
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov ecx, edi
mov dword [esp + 0x10], ecx
jmp 0x46afe1
cmp cx, 0x22
jne 0x46af5f
test edx, edx
jne 0x46af4e
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
cmp ecx, 1
sbb ecx, ecx
neg ecx
mov dword [esp + 0xc], ecx
jmp 0x46afde
cmp dword [esp + 0xc], 0
jne 0x46af81
mov cx, word [eax]
cmp cx, 0x20
je 0x46afac
cmp cx, 9
je 0x46afac
cmp cx, 0xa
je 0x46afac
cmp cx, 0xd
je 0x46afac
test edx, edx
jne 0x46af89
mov edx, dword [esp + 4]
test ebx, ebx
jg 0x46af94
cmp dword [esp + 8], 0
jne 0x46afde
test edi, edi
je 0x46afa9
mov ecx, dword [esp + 4]
mov bp, word [eax]
mov word [ecx], bp
add dword [esp + 4], 2
jmp 0x46afde
inc esi
jmp 0x46afde
test edx, edx
je 0x46afde
test ebx, ebx
jg 0x46afbb
cmp dword [esp + 8], 0
jne 0x46afd6
test edi, edi
je 0x46afd5
mov ecx, dword [esp + 4]
mov word [ecx], 0
add dword [esp + 4], 2
mov ecx, dword [esp + 0x10]
mov dword [ecx], edx
jmp 0x46afd6
inc esi
add dword [esp + 0x10], 4
inc ebx
xor edx, edx
add eax, 2
mov cx, word [eax]
test cx, cx
jne 0x46af40
test edx, edx
je 0x46b010
test ebx, ebx
jg 0x46affc
cmp dword [esp + 8], 0
jne 0x46b00f
test edi, edi
je 0x46b00e
mov eax, dword [esp + 4]
mov word [eax], 0
mov dword [edi + ebx*4], edx
jmp 0x46b00f
inc esi
inc ebx
cmp dword [esp], 0
je 0x46b022
test edi, edi
jne 0x46b022
test ebx, ebx
jne 0x46aee5
test ebx, ebx
jg 0x46b058
cmp dword [esp + 8], 0
je 0x46b056
mov ebx, 1
mov edx, dword [esp + 8]
mov eax, ebx
add edx, edx
shl eax, 2
add eax, edx
push eax
push 0
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapAlloc
mov edi, eax
lea eax, [edi + ebx*4]
mov dword [edi], eax
jmp 0x46b058
xor ebx, ebx
test ebx, ebx
jle 0x46b083
cmp dword [esp + 8], 0
je 0x46b083
mov eax, dword [esp + 8]
push eax
mov edx, dword [edi]
push edx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
test eax, eax
je 0x46b083
mov ecx, dword [edi]
mov eax, dword [esp + 8]
mov word [ecx + eax*2 - 2], 0
call fcn.0046b140
test ebx, ebx
jle 0x46b135
mov dword [0x54b8bc], edi
mov dword [0x54b8b4], ebx
xor esi, esi
xor ebx, ebx
jmp 0x46b0b5
mov eax, dword [0x54b8bc]
mov edx, dword [eax + ebx*4]
push edx
call fcn.004a5034
pop ecx
inc eax
add esi, eax
inc ebx
cmp ebx, dword [0x54b8b4]
jl 0x46b0a2
mov ecx, dword [0x54b8b4]
shl ecx, 2
add esi, ecx
push esi
push 0
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapAlloc
mov ebx, eax
mov dword [0x54b8c0], ebx
mov edi, dword [0x54b8b4]
shl edi, 2
add edi, ebx
xor ebx, ebx
jmp 0x46b121
mov eax, dword [0x54b8bc]
mov edx, dword [eax + ebx*4]
push edx
call fcn.004a5034
mov esi, eax
mov edx, dword [0x54b8bc]
inc esi
pop ecx
mov eax, esi
dec eax
push eax
mov ecx, dword [edx + ebx*4]
push ecx
push edi
call fcn.004a5054
add esp, 0xc
mov eax, dword [0x54b8c0]
mov dword [eax + ebx*4], edi
add edi, esi
inc ebx
cmp ebx, dword [0x54b8b4]
jl 0x46b0ed
mov edx, dword [0x54b8c0]
mov dword [0x54b8b8], edx
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret