Function at 0x46511c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
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 0x465152
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 eax, eax
mov dword [esp + 4], eax
xor esi, esi
or ebx, 0xffffffff
jmp 0x46529c
test esi, esi
je 0x4651b2
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 ecx, ebx
mov dword [esp + 4], eax
shl ecx, 2
mov eax, dword [esp + 4]
add ecx, dword [esp + 4]
mov dword [eax], ecx
mov edx, dword [esp + 8]
add edx, edx
add ecx, edx
jmp 0x4651b9
mov ecx, dword [esp]
mov esi, dword [esp + 8]
mov eax, dword [esp]
xor edx, edx
xor ebx, ebx
xor edi, edi
mov dword [esp + 0xc], edi
mov edi, dword [esp + 4]
mov dword [esp + 0x10], edi
jmp 0x46526a
cmp di, 0x22
jne 0x4651f0
test edx, edx
jne 0x4651df
mov edx, ecx
mov edi, dword [esp + 0xc]
cmp edi, 1
sbb edi, edi
neg edi
mov dword [esp + 0xc], edi
jmp 0x465267
cmp dword [esp + 0xc], 0
jne 0x465212
mov di, word [eax]
cmp di, 0x20
je 0x465238
cmp di, 9
je 0x465238
cmp di, 0xa
je 0x465238
cmp di, 0xd
je 0x465238
test edx, edx
jne 0x465218
mov edx, ecx
test ebx, ebx
jg 0x465223
cmp dword [esp + 8], 0
jne 0x465267
cmp dword [esp + 4], 0
je 0x465235
mov di, word [eax]
mov word [ecx], di
add ecx, 2
jmp 0x465267
inc esi
jmp 0x465267
test edx, edx
je 0x465267
test ebx, ebx
jg 0x465247
cmp dword [esp + 8], 0
jne 0x46525f
cmp dword [esp + 4], 0
je 0x46525e
mov word [ecx], 0
add ecx, 2
mov edi, dword [esp + 0x10]
mov dword [edi], edx
jmp 0x46525f
inc esi
add dword [esp + 0x10], 4
inc ebx
xor edx, edx
add eax, 2
mov di, word [eax]
test di, di
jne 0x4651d3
test edx, edx
je 0x46529c
test ebx, ebx
jg 0x465285
cmp dword [esp + 8], 0
jne 0x46529b
cmp dword [esp + 4], 0
je 0x46529a
mov word [ecx], 0
mov eax, dword [esp + 4]
mov dword [eax + ebx*4], edx
jmp 0x46529b
inc esi
inc ebx
cmp dword [esp], 0
je 0x4652b1
cmp dword [esp + 4], 0
jne 0x4652b1
test ebx, ebx
jne 0x465178
test ebx, ebx
jg 0x4652f3
cmp dword [esp + 8], 0
je 0x4652f1
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 ecx, ebx
mov dword [esp + 4], eax
shl ecx, 2
mov eax, dword [esp + 4]
add ecx, dword [esp + 4]
mov dword [eax], ecx
jmp 0x4652f3
xor ebx, ebx
test ebx, ebx
jle 0x465326
cmp dword [esp + 8], 0
je 0x465326
mov eax, dword [esp + 8]
push eax
mov edx, dword [esp + 8]
mov ecx, dword [edx]
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
test eax, eax
je 0x465326
mov eax, dword [esp + 4]
mov edx, dword [eax]
mov ecx, dword [esp + 8]
mov word [edx + ecx*2 - 2], 0
call fcn.004653e4
test ebx, ebx
jle 0x4653db
mov eax, dword [esp + 4]
mov dword [0x5aba84], eax
mov dword [0x5aba7c], ebx
xor esi, esi
xor ebx, ebx
jmp 0x46535b
mov eax, dword [0x5aba84]
mov edx, dword [eax + ebx*4]
push edx
call fcn.004cb470
pop ecx
inc eax
add esi, eax
inc ebx
cmp ebx, dword [0x5aba7c]
jl 0x465348
mov ecx, dword [0x5aba7c]
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 [0x5aba88], ebx
mov edi, dword [0x5aba7c]
shl edi, 2
add edi, ebx
xor ebx, ebx
jmp 0x4653c7
mov eax, dword [0x5aba84]
mov edx, dword [eax + ebx*4]
push edx
call fcn.004cb470
mov esi, eax
mov edx, dword [0x5aba84]
inc esi
pop ecx
mov eax, esi
dec eax
push eax
mov ecx, dword [edx + ebx*4]
push ecx
push edi
call fcn.004cb490
add esp, 0xc
mov eax, dword [0x5aba88]
mov dword [eax + ebx*4], edi
add edi, esi
inc ebx
cmp ebx, dword [0x5aba7c]
jl 0x465393
mov edx, dword [0x5aba88]
mov dword [0x5aba80], edx
add esp, 0x14
pop edi
pop esi
pop ebx
ret