Function at 0x10087eb
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push 0x350
mov eax, 0x1039389
call fcn.01037352
mov esi, dword [ebp + 0xc]
xor edi, edi
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x35c], 1
mov dword [ebp - 0x350], edi
call fcn.0100be78
mov dword [ebp - 4], edi
mov dword [ebp - 0x354], edi
mov dword [ebp - 0x358], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x1001788
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
push 0x1001770
call fcn.01010abb
push esi
push dword [ebp + 8]
call fcn.0100862c
mov ebx, eax
cmp ebx, edi
jne 0x1008886
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008b1e
test byte [eax + 0x1c], 1
je 0x1008b1e
push 0x1001734
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1008b1e
lea eax, [ebp - 0x350]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10089a4
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x354]
push eax
push dword [ebp - 0x350]
call fcn.010379b5
test eax, eax
jne 0x10089a4
cmp dword [ebp - 0x358], edi
je 0x10089a4
cmp dword [ebp - 0x354], edi
jne 0x10089a4
cmp dword [ebp + 8], 3
jge 0x1008909
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008b1e
test byte [eax + 0x1c], 1
je 0x1008b1e
push 0x1001734
push 0xc
jmp 0x1008876
push dword [esi + 8]
xor eax, eax
push dword [esi + 4]
mov word [ebp - 0x90], ax
push 0x1001764
lea eax, [ebp - 0x90]
push 0x40
push eax
call fcn.0100878d
mov edi, eax
add esp, 0x14
test edi, edi
jge 0x1008966
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008b11
test byte [eax + 0x1c], 1
je 0x1008b11
push edi
push 0x1001734
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1008b11
push 0
lea eax, [ebp - 0x90]
push eax
push 1
call fcn.010128cc
mov edi, eax
test edi, edi
jge 0x1008b15
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008b11
test byte [eax + 0x1c], 1
je 0x1008b11
push edi
push 0x1001734
push 0xe
jmp 0x1008956
lea ecx, [ebp - 0x34c]
call fcn.0102a840
mov edi, eax
test edi, edi
jge 0x10089dc
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008b11
test byte [eax + 0x1c], 1
je 0x1008b11
push edi
push 0x1001734
push 0xf
jmp 0x1008956
cmp ebx, 2
jne 0x1008a2e
push 0
call fcn.01012077
test eax, eax
je 0x1008aea
push 0
lea ecx, [ebp - 0x34c]
call fcn.0100b1b8
mov edi, eax
test edi, edi
jge 0x1008b0f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008b11
test byte [eax + 0x1c], 1
je 0x1008b11
push edi
push 0x1001734
push 0x10
jmp 0x1008956
cmp ebx, 3
jne 0x1008a6f
lea ecx, [ebp - 0x34c]
call fcn.0100bce9
mov edi, eax
test edi, edi
jge 0x1008b0f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008b11
test byte [eax + 0x1c], 1
je 0x1008b11
push edi
push 0x1001734
push 0x11
jmp 0x1008956
cmp ebx, 1
jne 0x1008aa7
lea ecx, [ebp - 0x34c]
call fcn.0100ba5b
mov edi, eax
test edi, edi
jge 0x1008b0f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008b11
test byte [eax + 0x1c], bl
je 0x1008b11
push edi
push 0x1001734
push 0x12
jmp 0x1008956
cmp ebx, 4
jne 0x1008aea
cmp dword [ebp + 8], 5
jne 0x1008aea
push 1
push dword [esi + 0x10]
lea ecx, [ebp - 0x34c]
push dword [esi + 0xc]
call fcn.0100a3cd
mov edi, eax
test edi, edi
jge 0x1008b0f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008b11
test byte [eax + 0x1c], 1
je 0x1008b11
push edi
push 0x1001734
push 0x13
jmp 0x1008956
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008b0f
test byte [eax + 0x1c], 1
je 0x1008b0f
push ebx
push 0x1001734
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
xor edi, edi
test edi, edi
jl 0x1008b1c
and dword [ebp - 0x35c], 0
xor edi, edi
cmp dword [ebp - 0x350], edi
je 0x1008b38
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x350], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34c]
call fcn.0100bedf
mov eax, dword [ebp - 0x35c]
call fcn.010373e4
ret 8