Function at 0x104bbd1
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 - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor esi, esi
cmp dword [0x1082064], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
jne 0x104bdae
cmp eax, esi
mov dword [0x1082064], 1
je 0x104bdae
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x104bdae
cmp dword [ebp - 0x14], esi
push edi
mov dword [ebp - 0xc], esi
jle 0x104bda4
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + ecx*4]
push 0x1005e24
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x104bc81
push 0x10071d0
push dword [ebp - 0x18]
call edi
test eax, eax
pop ecx
pop ecx
je 0x104bd95
push 0x10071b8
push dword [ebp - 0x18]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x104bd95
and dword [ebx + 0x38], 0
jmp 0x104bdad
push 0x1005e90
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x104bc78
push 0x1005e70
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x104bdde
push 0x1004794
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x104bdde
push 0x1005e54
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x104bdb2
push 0x3a
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x104bd95
add eax, 2
push eax
mov dword [ebp - 0x20], eax
call fcn.01056f43
test eax, eax
je 0x104bd95
push dword [ebp - 4]
and dword [ebp - 0x10], 0
mov ecx, ebx
call fcn.0104a13e
mov esi, eax
test esi, esi
jne 0x104bd28
push 0xb8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x104bd1f
mov ecx, eax
call fcn.01048298
mov esi, eax
jmp 0x104bd21
xor esi, esi
mov dword [ebp - 0x10], 1
and dword [ebx + 0x38], 0
test esi, esi
je 0x104bd95
push esi
push dword [ebp - 0x20]
mov ecx, ebx
call fcn.0104bb67
mov ebx, eax
test ebx, ebx
jl 0x104bd73
push 0
mov ecx, esi
call fcn.010487d9
test eax, eax
je 0x104bd73
mov ecx, dword [ebp - 8]
push esi
call fcn.010488d3
mov ebx, eax
test ebx, ebx
jl 0x104bd69
mov ecx, dword [ebp - 8]
and dword [ebp - 0x10], 0
call fcn.0104a555
push ebx
push 0x100718c
push 4
jmp 0x104bd7b
push ebx
push 0x1007160
push 2
call fcn.0105e5ad
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x104bd92
push 1
mov ecx, esi
call fcn.01048878
mov ebx, dword [ebp - 8]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x104bc38
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret
push 0x1005e38
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x104bd95
push 0x3a
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x104bd95
add eax, 2
push eax
mov ecx, ebx
call fcn.0104813b
jmp 0x104bd95
push 0x3a
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x104bd95
add dword [ebp - 4], 2
push dword [ebp - 4]
mov ecx, ebx
call fcn.0104a454
push dword [ebp - 4]
mov ecx, ebx
call fcn.01048121
push 0x1004794
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x104be1f
mov dword [ebx + 0x3c], 1
push dword [ebp - 4]
push 0x1007128
push 3
call fcn.0105e5ad
add esp, 0xc
jmp 0x104bd95