Function at 0x104b663
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
cmp dword [0x107465c], esi
jne 0x104b861
mov dword [0x107465c], 1
cmp eax, esi
je 0x104b861
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x104b861
cmp dword [ebp - 0x14], esi
push edi
mov dword [ebp - 0x10], esi
jle 0x104b857
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
lea esi, [eax + ecx*4]
push 0x1005d14
push dword [esi]
call edi
pop ecx
pop ecx
test eax, eax
je 0x104b713
push 0x10070f0
push dword [ebp - 0x18]
call edi
pop ecx
pop ecx
test eax, eax
je 0x104b848
push 0x10070d8
push dword [ebp - 0x18]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x104b848
and dword [ebx + 0x38], 0
jmp 0x104b860
push 0x1005d80
push dword [esi]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x104b70a
push 0x1005d60
push dword [esi]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x104b891
push 0x1004344
push dword [esi]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x104b891
push 0x1005d44
push dword [esi]
call edi
pop ecx
pop ecx
test eax, eax
je 0x104b865
push 0x3a
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x104b848
add eax, 2
push eax
mov dword [ebp - 0x20], eax
call fcn.010561eb
test eax, eax
je 0x104b848
push dword [ebp - 4]
and dword [ebp - 8], 0
mov ecx, ebx
call fcn.01049c8f
mov esi, eax
test esi, esi
jne 0x104b7ba
push 0xb8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x104b7b1
mov ecx, eax
call fcn.01047dcc
mov esi, eax
jmp 0x104b7b3
xor esi, esi
mov dword [ebp - 8], 1
and dword [ebx + 0x38], 0
test esi, esi
je 0x104b848
push esi
push dword [ebp - 0x20]
mov ecx, ebx
call fcn.0104b5f9
mov ebx, eax
test ebx, ebx
jl 0x104b826
push 0
mov ecx, esi
call fcn.0104830d
test eax, eax
je 0x104b826
mov ecx, dword [ebp - 0xc]
push esi
call fcn.01048407
mov ebx, eax
test ebx, ebx
jl 0x104b7ff
mov ecx, dword [ebp - 0xc]
and dword [ebp - 8], 0
call fcn.0104a0ba
cmp dword [ebp - 8], 0
jne 0x104b81c
test ebx, ebx
jge 0x104b81c
mov ecx, dword [ebp - 0xc]
push esi
call fcn.01048480
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x104b81c
mov dword [ebp - 8], ecx
push ebx
push 0x10070ac
push 4
jmp 0x104b82e
push ebx
push 0x1007080
push 2
call fcn.01055c8a
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x104b845
push 1
mov ecx, esi
call fcn.010483ac
mov ebx, dword [ebp - 0xc]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x104b6ca
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret
push 0x1005d28
push dword [esi]
call edi
pop ecx
pop ecx
test eax, eax
je 0x104b848
push 0x3a
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x104b848
add eax, 2
push eax
mov ecx, ebx
call fcn.01047c6f
jmp 0x104b848
push 0x3a
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x104b848
add dword [ebp - 4], 2
push dword [ebp - 4]
mov ecx, ebx
call fcn.01049fb4
push dword [ebp - 4]
mov ecx, ebx
call fcn.0104c142
push 0x1004344
push dword [esi]
call edi
pop ecx
pop ecx
test eax, eax
je 0x104b8d2
mov dword [ebx + 0x3c], 1
push dword [ebp - 4]
push 0x1007048
push 3
call fcn.01055c8a
add esp, 0xc
jmp 0x104b848