Function at 0x1022f1b
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 0x14], 0xc00000e5
je 0x1022f3a
mov dword [ecx], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1022f43
mov dword [eax], ebx
cmp ecx, ebx
je 0x1022f4b
cmp eax, ebx
jne 0x1022f6c
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 0x1002660
call fcn.0101cd64
mov esi, dword [ebp - 0x14]
jmp 0x10230ee
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call sub.KERNEL32.dll_GetCommandLineW
mov esi, eax
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push esi
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.01021637
cmp eax, ebx
jge 0x1023080
mov esi, eax
jmp 0x10230e6
mov ebx, dword [ebp - 0x34]
lea eax, [ebp - 0x34]
sub ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x34]
lea esi, [ebx + 0x10]
mov ecx, dword [esi]
test cl, 1
jne 0x10230f7
test ecx, ecx
je 0x1023075
cmp ecx, 2
je 0x1023045
mov eax, dword [esi + 8]
cmp word [eax], 0x40
jne 0x1023045
mov edx, ecx
shr edx, 1
cmp word [eax + edx*2 - 2], 0
jne 0x1022fed
add ecx, 0xfffffffe
mov dword [esi], ecx
push dword [esi]
lea ecx, [eax + 2]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add dword [esi], 0xfffffffe
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0101ecb0
test eax, eax
jl 0x1023122
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.0102177b
test eax, eax
lea ecx, [ebp - 0x10]
jl 0x1023125
call fcn.0101cd79
jmp 0x1023075
push 1
lea eax, [ebp - 4]
lea ecx, [edi + 0x10]
push eax
call fcn.01022047
cmp dword [ebp - 4], 0
jl 0x102312e
inc dword [edi + 0x20]
lea ecx, [edi + 0x10]
mov eax, dword [ecx + 8]
push esi
dec eax
push eax
call fcn.0101fa5e
mov ecx, eax
call fcn.0101c927
push 1
push ebx
lea ecx, [ebp - 0x34]
call fcn.0101cad4
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x34], eax
jne 0x1022fa9
mov ebx, dword [edi + 0x18]
push ebx
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.01084a6a
mov esi, dword [ebp + 0xc]
test esi, esi
jl 0x10230e6
and dword [ebp + 0xc], 0
test ebx, ebx
je 0x10230cc
push dword [ebp + 0xc]
lea ecx, [edi + 0x10]
call fcn.0101fa5e
push dword [ebp + 0xc]
mov esi, dword [eax + 8]
mov ecx, edi
call fcn.0108453b
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], ebx
mov dword [eax], esi
jne 0x10230aa
mov eax, dword [edi + 8]
cmp dword [edi + 0xc], eax
jae 0x10230d7
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor esi, esi
lea ecx, [ebp - 0x34]
call fcn.0101d840
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 1
call fcn.0101d840
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1002660
call fcn.0101d3f6
jmp 0x1022f64
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0101cd79
jmp 0x10230e6
mov esi, dword [ebp - 4]
jmp 0x10230e6