Function at 0x18086843
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x181d700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.180074fa
push 0x181a96a0
lea ecx, [ebp - 0x10]
call fcn.180149e8
mov dword [ebp - 0x1c], eax
mov esi, dword [eax]
mov edi, esi
movzx eax, word [edi]
test ax, ax
je 0x180868e9
mov edx, eax
mov ecx, 0x181a96a0
call fcn.18007a23
test eax, eax
je 0x180868a3
add edi, 2
movzx eax, word [edi]
mov edx, eax
test ax, ax
jne 0x18086888
cmp edi, esi
je 0x180868e9
push dword [esi - 0xc]
sub edi, esi
mov esi, dword [ebp - 0x1c]
mov ecx, esi
sar edi, 1
call fcn.180075b2
mov ecx, dword [esi]
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.180079be
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push esi
call fcn.18007587
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x1808691a
xor edx, edx
lea ecx, [ebp - 0x20]
call fcn.18014dc5
push eax
lea ecx, [ebp - 0x10]
call fcn.18009e8a
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.18006f72
lea ecx, [ebp - 0x10]
call fcn.1801670f
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x1808693d
call fcn.1801bab5
mov ebx, eax
jmp 0x18086b61
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x28], esi
test esi, esi
je 0x18086b53
mov edi, dword [ebp - 0x24]
mov ecx, dword [edi]
call fcn.18086553
lea eax, [edi + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], eax
call fcn.18086553
cmp esi, 1
je 0x18086b58
mov dword [ebp - 0xc], ebx
call fcn.18006f9c
push eax
lea ecx, [ebp - 0xc]
call fcn.180076af
xor eax, eax
mov byte [ebp - 0x15], bl
inc eax
mov dword [ebp - 0x30], eax
cmp esi, eax
jle 0x18086b0d
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 8], ebx
push dword [ecx + eax*4]
lea ecx, [ebp - 8]
call fcn.180074fa
push 0x181a96a0
lea ecx, [ebp - 8]
call fcn.180149e8
mov dword [ebp - 0x1c], eax
mov edi, dword [eax]
movzx ecx, word [edi]
test cx, cx
je 0x18086a21
mov edx, ecx
mov ecx, 0x181a96a0
call fcn.18007a23
test eax, eax
je 0x180869d5
add edi, 2
movzx eax, word [edi]
mov edx, eax
test ax, ax
jne 0x180869ba
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
cmp edi, eax
je 0x18086a21
push dword [eax - 0xc]
sub edi, eax
sar edi, 1
call fcn.180075b2
mov ecx, dword [ebp - 0x1c]
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.180079be
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push esi
call fcn.18007587
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 8]
push eax
call fcn.18086b7f
test al, al
je 0x18086a65
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.18086c3a
mov edi, eax
test edi, edi
js 0x18086b1a
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call fcn.18086571
mov edi, eax
test edi, edi
js 0x18086b1a
mov byte [ebp - 0x15], bl
jmp 0x18086af3
lea eax, [ebp - 8]
push eax
call fcn.18086bdf
test al, al
je 0x18086ad3
lea eax, [ebp - 8]
push eax
call fcn.18086bdf
test al, al
je 0x18086b34
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.1800f994
push eax
call fcn.18086c3a
mov ecx, dword [ebp - 0x34]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18006f72
test esi, esi
js 0x18086b39
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call fcn.18086571
mov esi, eax
test esi, esi
js 0x18086b39
mov esi, dword [ebp - 0x28]
mov byte [ebp - 0x15], 1
jmp 0x18086af3
mov ecx, dword [ebp - 0x2c]
cmp byte [ebp - 0x15], bl
jne 0x18086ade
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.180865bb
mov edi, eax
test edi, edi
js 0x18086b1a
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, esi
jl 0x1808698d
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
jmp 0x18086b58
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ebx, edi
jmp 0x18086b58
mov esi, 0x80070057
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ebx, esi
jmp 0x18086b58
mov ebx, 0x80070057
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18122538
leave
ret 4