Function at 0x181556eb
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.18006e68
push 0x18205a78
lea ecx, [ebp - 0xc]
call fcn.18012d8c
mov ebx, eax
mov esi, dword [ebx]
mov edi, esi
movzx eax, word [edi]
test ax, ax
je 0x1815577c
mov edx, eax
mov ecx, 0x18205a78
call fcn.1800732c
test eax, eax
je 0x1815573a
add edi, 2
movzx eax, word [edi]
mov edx, eax
test ax, ax
jne 0x1815571f
cmp edi, esi
je 0x1815577c
push dword [esi - 0xc]
sub edi, esi
mov ecx, ebx
sar edi, 1
call fcn.18006f27
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.180072c8
add esp, 0x10
mov ecx, ebx
push esi
call fcn.18006efc
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x181557af
xor edx, edx
lea ecx, [ebp + 8]
call fcn.18013127
push eax
lea ecx, [ebp - 0xc]
call fcn.18009d41
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1800694d
lea ecx, [ebp - 0xc]
call fcn.18014635
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 0x181557d2
call fcn.18018dce
mov ebx, eax
jmp 0x181559c9
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x28], esi
test esi, esi
je 0x181559bb
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi]
call fcn.18155475
lea eax, [edi + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], eax
call fcn.18155475
cmp esi, 1
je 0x181559c0
lea ecx, [ebp - 8]
call fcn.18009d8f
xor eax, eax
mov byte [ebp + 0xb], bl
inc eax
mov dword [ebp - 0x20], eax
cmp esi, eax
jle 0x1815598f
mov ecx, dword [ebp - 0x24]
push dword [ecx + eax*4]
lea ecx, [ebp - 4]
call fcn.18006e68
push 0x18205a78
lea ecx, [ebp - 4]
call fcn.18012d8c
mov dword [ebp - 0x10], eax
mov edi, dword [eax]
movzx ecx, word [edi]
test cx, cx
je 0x181558aa
mov edx, ecx
mov ecx, 0x18205a78
call fcn.1800732c
test eax, eax
je 0x1815585e
add edi, 2
movzx eax, word [edi]
mov edx, eax
test ax, ax
jne 0x18155843
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
cmp edi, eax
je 0x181558aa
push dword [eax - 0xc]
sub edi, eax
sar edi, 1
call fcn.18006f27
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.180072c8
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push esi
call fcn.18006efc
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 4]
push eax
call fcn.181559dd
test al, al
je 0x181558ee
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.18155a98
mov edi, eax
test edi, edi
js 0x181559a1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call fcn.18155493
mov edi, eax
test edi, edi
js 0x181559a1
mov byte [ebp + 0xb], bl
jmp 0x18155975
lea eax, [ebp - 4]
push eax
call fcn.18155a3d
test al, al
je 0x18155955
lea eax, [ebp - 4]
push eax
call fcn.18155a3d
test al, al
je 0x1815599c
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.1800e5b2
push eax
call fcn.18155a98
mov ecx, dword [ebp - 0x2c]
mov edi, eax
add ecx, 0xfffffff0
call fcn.1800694d
test edi, edi
js 0x181559a1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call fcn.18155493
mov edi, eax
test edi, edi
js 0x181559a1
mov byte [ebp + 0xb], 1
jmp 0x18155975
mov ecx, dword [ebp - 0x1c]
cmp byte [ebp + 0xb], bl
jne 0x18155960
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.181554dc
mov edi, eax
test edi, edi
js 0x181559a1
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, esi
jl 0x18155819
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800694d
jmp 0x181559c0
mov edi, 0x80070057
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ebx, edi
jmp 0x181559c0
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.1800694d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4