Function at 0x479188
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 0x4791be
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 0x479308
test esi, esi
je 0x47921e
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 0x479225
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 0x4792d6
cmp di, 0x22
jne 0x47925c
test edx, edx
jne 0x47924b
mov edx, ecx
mov edi, dword [esp + 0xc]
cmp edi, 1
sbb edi, edi
neg edi
mov dword [esp + 0xc], edi
jmp 0x4792d3
cmp dword [esp + 0xc], 0
jne 0x47927e
mov di, word [eax]
cmp di, 0x20
je 0x4792a4
cmp di, 9
je 0x4792a4
cmp di, 0xa
je 0x4792a4
cmp di, 0xd
je 0x4792a4
test edx, edx
jne 0x479284
mov edx, ecx
test ebx, ebx
jg 0x47928f
cmp dword [esp + 8], 0
jne 0x4792d3
cmp dword [esp + 4], 0
je 0x4792a1
mov di, word [eax]
mov word [ecx], di
add ecx, 2
jmp 0x4792d3
inc esi
jmp 0x4792d3
test edx, edx
je 0x4792d3
test ebx, ebx
jg 0x4792b3
cmp dword [esp + 8], 0
jne 0x4792cb
cmp dword [esp + 4], 0
je 0x4792ca
mov word [ecx], 0
add ecx, 2
mov edi, dword [esp + 0x10]
mov dword [edi], edx
jmp 0x4792cb
inc esi
add dword [esp + 0x10], 4
inc ebx
xor edx, edx
add eax, 2
mov di, word [eax]
test di, di
jne 0x47923f
test edx, edx
je 0x479308
test ebx, ebx
jg 0x4792f1
cmp dword [esp + 8], 0
jne 0x479307
cmp dword [esp + 4], 0
je 0x479306
mov word [ecx], 0
mov eax, dword [esp + 4]
mov dword [eax + ebx*4], edx
jmp 0x479307
inc esi
inc ebx
cmp dword [esp], 0
je 0x47931d
cmp dword [esp + 4], 0
jne 0x47931d
test ebx, ebx
jne 0x4791e4
test ebx, ebx
jg 0x47935f
cmp dword [esp + 8], 0
je 0x47935d
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 0x47935f
xor ebx, ebx
test ebx, ebx
jle 0x479392
cmp dword [esp + 8], 0
je 0x479392
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 0x479392
mov eax, dword [esp + 4]
mov edx, dword [eax]
mov ecx, dword [esp + 8]
mov word [edx + ecx*2 - 2], 0
call fcn.00479450
test ebx, ebx
jle 0x479447
mov eax, dword [esp + 4]
mov dword [0x5a3e90], eax
mov dword [0x5a3e88], ebx
xor esi, esi
xor ebx, ebx
jmp 0x4793c7
mov eax, dword [0x5a3e90]
mov edx, dword [eax + ebx*4]
push edx
call fcn.004b65b0
pop ecx
inc eax
add esi, eax
inc ebx
cmp ebx, dword [0x5a3e88]
jl 0x4793b4
mov ecx, dword [0x5a3e88]
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 [0x5a3e94], ebx
mov edi, dword [0x5a3e88]
shl edi, 2
add edi, ebx
xor ebx, ebx
jmp 0x479433
mov eax, dword [0x5a3e90]
mov edx, dword [eax + ebx*4]
push edx
call fcn.004b65b0
mov esi, eax
mov edx, dword [0x5a3e90]
inc esi
pop ecx
mov eax, esi
dec eax
push eax
mov ecx, dword [edx + ebx*4]
push ecx
push edi
call fcn.004b65d0
add esp, 0xc
mov eax, dword [0x5a3e94]
mov dword [eax + ebx*4], edi
add edi, esi
inc ebx
cmp ebx, dword [0x5a3e88]
jl 0x4793ff
mov edx, dword [0x5a3e94]
mov dword [0x5a3e8c], edx
add esp, 0x14
pop edi
pop esi
pop ebx
ret