Function at 0x4b9d60
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 0x4b9d97
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 0x4b9ee4
test esi, esi
je 0x4b9df1
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 0x4b9dfc
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 0x4b9eb5
cmp cx, 0x22
jne 0x4b9e33
test edx, edx
jne 0x4b9e22
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
cmp ecx, 1
sbb ecx, ecx
neg ecx
mov dword [esp + 0xc], ecx
jmp 0x4b9eb2
cmp dword [esp + 0xc], 0
jne 0x4b9e55
mov cx, word [eax]
cmp cx, 0x20
je 0x4b9e80
cmp cx, 9
je 0x4b9e80
cmp cx, 0xa
je 0x4b9e80
cmp cx, 0xd
je 0x4b9e80
test edx, edx
jne 0x4b9e5d
mov edx, dword [esp + 4]
test ebx, ebx
jg 0x4b9e68
cmp dword [esp + 8], 0
jne 0x4b9eb2
test edi, edi
je 0x4b9e7d
mov ecx, dword [esp + 4]
mov bp, word [eax]
mov word [ecx], bp
add dword [esp + 4], 2
jmp 0x4b9eb2
inc esi
jmp 0x4b9eb2
test edx, edx
je 0x4b9eb2
test ebx, ebx
jg 0x4b9e8f
cmp dword [esp + 8], 0
jne 0x4b9eaa
test edi, edi
je 0x4b9ea9
mov ecx, dword [esp + 4]
mov word [ecx], 0
add dword [esp + 4], 2
mov ecx, dword [esp + 0x10]
mov dword [ecx], edx
jmp 0x4b9eaa
inc esi
add dword [esp + 0x10], 4
inc ebx
xor edx, edx
add eax, 2
mov cx, word [eax]
test cx, cx
jne 0x4b9e14
test edx, edx
je 0x4b9ee4
test ebx, ebx
jg 0x4b9ed0
cmp dword [esp + 8], 0
jne 0x4b9ee3
test edi, edi
je 0x4b9ee2
mov eax, dword [esp + 4]
mov word [eax], 0
mov dword [edi + ebx*4], edx
jmp 0x4b9ee3
inc esi
inc ebx
cmp dword [esp], 0
je 0x4b9ef6
test edi, edi
jne 0x4b9ef6
test ebx, ebx
jne 0x4b9db9
test ebx, ebx
jg 0x4b9f2c
cmp dword [esp + 8], 0
je 0x4b9f2a
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 0x4b9f2c
xor ebx, ebx
test ebx, ebx
jle 0x4b9f57
cmp dword [esp + 8], 0
je 0x4b9f57
mov eax, dword [esp + 8]
push eax
mov edx, dword [edi]
push edx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
test eax, eax
je 0x4b9f57
mov ecx, dword [edi]
mov eax, dword [esp + 8]
mov word [ecx + eax*2 - 2], 0
call fcn.004ba014
test ebx, ebx
jle 0x4ba009
mov dword [0x5bfdd0], edi
mov dword [0x5bfdc8], ebx
xor esi, esi
xor ebx, ebx
jmp 0x4b9f89
mov eax, dword [0x5bfdd0]
mov edx, dword [eax + ebx*4]
push edx
call fcn.004f600c
pop ecx
inc eax
add esi, eax
inc ebx
cmp ebx, dword [0x5bfdc8]
jl 0x4b9f76
mov ecx, dword [0x5bfdc8]
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 [0x5bfdd4], ebx
mov edi, dword [0x5bfdc8]
shl edi, 2
add edi, ebx
xor ebx, ebx
jmp 0x4b9ff5
mov eax, dword [0x5bfdd0]
mov edx, dword [eax + ebx*4]
push edx
call fcn.004f600c
mov esi, eax
mov edx, dword [0x5bfdd0]
inc esi
pop ecx
mov eax, esi
dec eax
push eax
mov ecx, dword [edx + ebx*4]
push ecx
push edi
call fcn.004f602c
add esp, 0xc
mov eax, dword [0x5bfdd4]
mov dword [eax + ebx*4], edi
add edi, esi
inc ebx
cmp ebx, dword [0x5bfdc8]
jl 0x4b9fc1
mov edx, dword [0x5bfdd4]
mov dword [0x5bfdcc], edx
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret