Function at 0x47a608
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 0x47a63f
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 0x47a78c
test esi, esi
je 0x47a699
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 0x47a6a4
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 0x47a75d
cmp cx, 0x22
jne 0x47a6db
test edx, edx
jne 0x47a6ca
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
cmp ecx, 1
sbb ecx, ecx
neg ecx
mov dword [esp + 0xc], ecx
jmp 0x47a75a
cmp dword [esp + 0xc], 0
jne 0x47a6fd
mov cx, word [eax]
cmp cx, 0x20
je 0x47a728
cmp cx, 9
je 0x47a728
cmp cx, 0xa
je 0x47a728
cmp cx, 0xd
je 0x47a728
test edx, edx
jne 0x47a705
mov edx, dword [esp + 4]
test ebx, ebx
jg 0x47a710
cmp dword [esp + 8], 0
jne 0x47a75a
test edi, edi
je 0x47a725
mov ecx, dword [esp + 4]
mov bp, word [eax]
mov word [ecx], bp
add dword [esp + 4], 2
jmp 0x47a75a
inc esi
jmp 0x47a75a
test edx, edx
je 0x47a75a
test ebx, ebx
jg 0x47a737
cmp dword [esp + 8], 0
jne 0x47a752
test edi, edi
je 0x47a751
mov ecx, dword [esp + 4]
mov word [ecx], 0
add dword [esp + 4], 2
mov ecx, dword [esp + 0x10]
mov dword [ecx], edx
jmp 0x47a752
inc esi
add dword [esp + 0x10], 4
inc ebx
xor edx, edx
add eax, 2
mov cx, word [eax]
test cx, cx
jne 0x47a6bc
test edx, edx
je 0x47a78c
test ebx, ebx
jg 0x47a778
cmp dword [esp + 8], 0
jne 0x47a78b
test edi, edi
je 0x47a78a
mov eax, dword [esp + 4]
mov word [eax], 0
mov dword [edi + ebx*4], edx
jmp 0x47a78b
inc esi
inc ebx
cmp dword [esp], 0
je 0x47a79e
test edi, edi
jne 0x47a79e
test ebx, ebx
jne 0x47a661
test ebx, ebx
jg 0x47a7d4
cmp dword [esp + 8], 0
je 0x47a7d2
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 0x47a7d4
xor ebx, ebx
test ebx, ebx
jle 0x47a7ff
cmp dword [esp + 8], 0
je 0x47a7ff
mov eax, dword [esp + 8]
push eax
mov edx, dword [edi]
push edx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
test eax, eax
je 0x47a7ff
mov ecx, dword [edi]
mov eax, dword [esp + 8]
mov word [ecx + eax*2 - 2], 0
call fcn.0047a8bc
test ebx, ebx
jle 0x47a8b1
mov dword [0x5acf1c], edi
mov dword [0x5acf14], ebx
xor esi, esi
xor ebx, ebx
jmp 0x47a831
mov eax, dword [0x5acf1c]
mov edx, dword [eax + ebx*4]
push edx
call fcn.004b6358
pop ecx
inc eax
add esi, eax
inc ebx
cmp ebx, dword [0x5acf14]
jl 0x47a81e
mov ecx, dword [0x5acf14]
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 [0x5acf20], ebx
mov edi, dword [0x5acf14]
shl edi, 2
add edi, ebx
xor ebx, ebx
jmp 0x47a89d
mov eax, dword [0x5acf1c]
mov edx, dword [eax + ebx*4]
push edx
call fcn.004b6358
mov esi, eax
mov edx, dword [0x5acf1c]
inc esi
pop ecx
mov eax, esi
dec eax
push eax
mov ecx, dword [edx + ebx*4]
push ecx
push edi
call fcn.004b6378
add esp, 0xc
mov eax, dword [0x5acf20]
mov dword [eax + ebx*4], edi
add edi, esi
inc ebx
cmp ebx, dword [0x5acf14]
jl 0x47a869
mov edx, dword [0x5acf20]
mov dword [0x5acf18], edx
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret