Function at 0x10018e90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1554
call fcn.101b1fe0
mov eax, dword [0x1022101c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x1554], eax
mov dword [edi], 0
mov eax, dword [esi + 8]
test eax, eax
jne 0x10018edd
push str.Kernel32.dll
call ebx
mov dword [esi + 8], eax
test eax, eax
je 0x10019213
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10019213
call eax
mov dword [ebp - 0x1550], eax
cmp eax, 0xffffffff
je 0x10019213
cmp dword [esi + 0xc], 0
jne 0x10018f12
push str.psapi.dll
call ebx
mov dword [esi + 0xc], eax
cmp dword [esi + 4], 0
jne 0x10018f22
push str.advapi32.dll
call ebx
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10019213
cmp dword [esi + 4], 0
je 0x10019213
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push eax
call ebx
push str.GetModuleFileNameExA
push dword [esi + 0xc]
mov dword [ebp - 0x1534], eax
call ebx
push str.GetProcessImageFileNameA
push dword [esi + 0xc]
mov dword [ebp - 0x1540], eax
call ebx
push 0x101e2c2c
push dword [esi + 4]
mov dword [ebp - 0x153c], eax
call ebx
push 0x101e2c68
push dword [esi + 4]
mov dword [ebp - 0x1544], eax
call ebx
mov esi, dword [ebp - 0x1534]
mov dword [ebp - 0x154c], eax
test esi, esi
je 0x10019213
cmp dword [ebp - 0x1540], 0
jne 0x10018faf
cmp dword [ebp - 0x153c], 0
je 0x10019213
cmp dword [ebp - 0x1544], 0
je 0x10019213
test eax, eax
je 0x10019213
push 0x1000
lea eax, [ebp - 0x152c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1538], 0
lea eax, [ebp - 0x1538]
push eax
push 0x1000
lea eax, [ebp - 0x152c]
push eax
call esi
test eax, eax
je 0x10019213
mov eax, dword [ebp - 0x1538]
xor ebx, ebx
shr eax, 2
mov dword [ebp - 0x1534], eax
mov dword [ebp - 0x1530], 0
mov dword [ebp - 0x1548], 0
test eax, eax
je 0x100191fa
nop
push 0x105
lea eax, [ebp - 0x10c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x105
lea eax, [ebp - 0x52c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x105
lea eax, [ebp - 0x424]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x105
lea eax, [ebp - 0x214]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x105
lea eax, [ebp - 0x31c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x3c
push dword [ebp + ebx*4 - 0x152c]
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100191bf
mov eax, dword [ebp - 0x153c]
test eax, eax
je 0x100190cd
push 0x105
lea ecx, [ebp - 0x10c]
push ecx
push esi
call eax
test eax, eax
jne 0x100190f4
mov eax, dword [ebp - 0x1540]
test eax, eax
je 0x100191a5
push 0x105
lea ecx, [ebp - 0x10c]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x100191a5
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0x104
lea eax, [ebp - 0x214]
push eax
push 0x104
lea eax, [ebp - 0x424]
push eax
push 0x104
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
lea eax, [ebp - 0x214]
push eax
push str.explorer
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 0x2c
test eax, eax
jne 0x100191a5
lea eax, [ebp - 0x31c]
push eax
push 0x101e2c94
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x100191a5
push edi
push 0x2000e
push esi
call dword [ebp - 0x1544]
test eax, eax
je 0x100191a5
mov eax, dword [edi]
test eax, eax
je 0x100191b2
lea ecx, [ebp - 0x1548]
push ecx
push 4
lea ecx, [ebp - 0x1530]
push ecx
push 0xc
push eax
call dword [ebp - 0x154c]
test eax, eax
je 0x100191a5
mov eax, dword [ebp - 0x1550]
cmp dword [ebp - 0x1530], eax
je 0x100191e5
mov eax, dword [edi]
test eax, eax
je 0x100191b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp - 0x1534]
jb 0x10019030
cmp dword [edi], 0
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101b075c
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1554]
mov eax, dword [ebp - 0x1530]
mov dword [ecx], eax
cmp dword [edi], 0
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101b075c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101b075c
mov esp, ebp
pop ebp
ret 8