Function at 0x102323d
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 0x102325c
mov dword [ecx], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1023265
mov dword [eax], ebx
cmp ecx, ebx
je 0x102326d
cmp eax, ebx
jne 0x102328e
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 0x1002678
call fcn.0101d751
mov esi, dword [ebp - 0x14]
jmp 0x1023410
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.01021902
cmp eax, ebx
jge 0x10233a2
mov esi, eax
jmp 0x1023408
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 0x1023419
test ecx, ecx
je 0x1023397
cmp ecx, 2
je 0x1023367
mov eax, dword [esi + 8]
cmp word [eax], 0x40
jne 0x1023367
mov edx, ecx
shr edx, 1
cmp word [eax + edx*2 - 2], 0
jne 0x102330f
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.0101f021
test eax, eax
jl 0x1023444
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.01021a46
test eax, eax
lea ecx, [ebp - 0x10]
jl 0x1023447
call fcn.0101d150
jmp 0x1023397
push 1
lea eax, [ebp - 4]
lea ecx, [edi + 0x10]
push eax
call fcn.01022312
cmp dword [ebp - 4], 0
jl 0x1023450
inc dword [edi + 0x20]
lea ecx, [edi + 0x10]
mov eax, dword [ecx + 8]
push esi
dec eax
push eax
call fcn.0101fcfd
mov ecx, eax
call fcn.010292cc
push 1
push ebx
lea ecx, [ebp - 0x34]
call fcn.0101cdd4
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x34], eax
jne 0x10232cb
mov ebx, dword [edi + 0x18]
push ebx
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.010632fd
mov esi, dword [ebp + 0xc]
test esi, esi
jl 0x1023408
and dword [ebp + 0xc], 0
test ebx, ebx
je 0x10233ee
push dword [ebp + 0xc]
lea ecx, [edi + 0x10]
call fcn.0101fcfd
push dword [ebp + 0xc]
mov esi, dword [eax + 8]
mov ecx, edi
call fcn.0101eeb5
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], ebx
mov dword [eax], esi
jne 0x10233cc
mov eax, dword [edi + 8]
cmp dword [edi + 0xc], eax
jae 0x10233f9
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.0101dbb5
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.0101dbb5
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1002678
call fcn.0101d708
jmp 0x1023286
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0101d150
jmp 0x1023408
mov esi, dword [ebp - 4]
jmp 0x1023408