Function at 0x18142034
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
call fcn.18006d98
push 0x181eb648
lea ecx, [ebp - 0xc]
call fcn.1801223a
mov ebx, eax
mov esi, dword [ebx]
mov edi, esi
movzx eax, word [edi]
test ax, ax
je 0x181420c5
mov edx, eax
mov ecx, 0x181eb648
call fcn.1800725c
test eax, eax
je 0x18142083
add edi, 2
movzx eax, word [edi]
mov edx, eax
test ax, ax
jne 0x18142068
cmp edi, esi
je 0x181420c5
push dword [esi - 0xc]
sub edi, esi
mov ecx, ebx
sar edi, 1
call fcn.18006e57
mov ecx, dword [ebx]
mov edx, eax
mov eax, dword [ecx - 0xc]
mov esi, eax
sub esi, edi
lea eax, [eax*2 + 2]
lea ecx, [esi*2 + 2]
push ecx
lea ecx, [edx + edi*2]
push ecx
push eax
push edx
call fcn.180071f8
add esp, 0x10
mov ecx, ebx
push esi
call fcn.18006e2c
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x181420f8
xor edx, edx
lea ecx, [ebp + 8]
call fcn.180125d5
push eax
lea ecx, [ebp - 0xc]
call fcn.18009c40
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1800687d
lea ecx, [ebp - 0xc]
call fcn.18013ae3
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x1814211b
call fcn.18017850
mov ebx, eax
jmp 0x18142312
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x28], esi
test esi, esi
je 0x18142304
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi]
call fcn.18141dbe
lea eax, [edi + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], eax
call fcn.18141dbe
cmp esi, 1
je 0x18142309
lea ecx, [ebp - 8]
call fcn.18009c8e
xor eax, eax
mov byte [ebp + 0xb], bl
inc eax
mov dword [ebp - 0x20], eax
cmp esi, eax
jle 0x181422d8
mov ecx, dword [ebp - 0x24]
push dword [ecx + eax*4]
lea ecx, [ebp - 4]
call fcn.18006d98
push 0x181eb648
lea ecx, [ebp - 4]
call fcn.1801223a
mov dword [ebp - 0x10], eax
mov edi, dword [eax]
movzx ecx, word [edi]
test cx, cx
je 0x181421f3
mov edx, ecx
mov ecx, 0x181eb648
call fcn.1800725c
test eax, eax
je 0x181421a7
add edi, 2
movzx eax, word [edi]
mov edx, eax
test ax, ax
jne 0x1814218c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
cmp edi, eax
je 0x181421f3
push dword [eax - 0xc]
sub edi, eax
sar edi, 1
call fcn.18006e57
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov ecx, dword [ecx]
mov eax, dword [ecx - 0xc]
mov esi, eax
sub esi, edi
lea eax, [eax*2 + 2]
lea ecx, [esi*2 + 2]
push ecx
lea ecx, [edx + edi*2]
push ecx
push eax
push edx
call fcn.180071f8
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push esi
call fcn.18006e2c
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 4]
push eax
call fcn.18142326
test al, al
je 0x18142237
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.181423e1
mov edi, eax
test edi, edi
js 0x181422ea
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call fcn.18141ddc
mov edi, eax
test edi, edi
js 0x181422ea
mov byte [ebp + 0xb], bl
jmp 0x181422be
lea eax, [ebp - 4]
push eax
call fcn.18142386
test al, al
je 0x1814229e
lea eax, [ebp - 4]
push eax
call fcn.18142386
test al, al
je 0x181422e5
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1800db4b
push eax
call fcn.181423e1
mov ecx, dword [ebp - 0x2c]
mov edi, eax
add ecx, 0xfffffff0
call fcn.1800687d
test edi, edi
js 0x181422ea
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call fcn.18141ddc
mov edi, eax
test edi, edi
js 0x181422ea
mov byte [ebp + 0xb], 1
jmp 0x181422be
mov ecx, dword [ebp - 0x1c]
cmp byte [ebp + 0xb], bl
jne 0x181422a9
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.18141e25
mov edi, eax
test edi, edi
js 0x181422ea
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, esi
jl 0x18142162
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800687d
jmp 0x18142309
mov edi, 0x80070057
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov ebx, edi
jmp 0x18142309
mov ebx, 0x80070057
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.1800687d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4