Function at 0x405090
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1554
call fcn.00419b90
mov eax, dword [0x42801c]
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 0x4050dd
push str.Kernel32.dll
call ebx
mov dword [esi + 8], eax
test eax, eax
je 0x405413
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405413
call eax
mov dword [ebp - 0x1550], eax
cmp eax, 0xffffffff
je 0x405413
cmp dword [esi + 0xc], 0
jne 0x405112
push str.psapi.dll
call ebx
mov dword [esi + 0xc], eax
cmp dword [esi + 4], 0
jne 0x405122
push str.advapi32.dll
call ebx
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405413
cmp dword [esi + 4], 0
je 0x405413
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 - 0x153c], eax
call ebx
push str.GetProcessImageFileNameA
push dword [esi + 0xc]
mov dword [ebp - 0x1544], eax
call ebx
push 0x420510
push dword [esi + 4]
mov dword [ebp - 0x1540], eax
call ebx
push 0x420524
push dword [esi + 4]
mov dword [ebp - 0x1548], eax
call ebx
mov esi, dword [ebp - 0x153c]
mov dword [ebp - 0x154c], eax
test esi, esi
je 0x405413
cmp dword [ebp - 0x1544], 0
jne 0x4051af
cmp dword [ebp - 0x1540], 0
je 0x405413
cmp dword [ebp - 0x1548], 0
je 0x405413
test eax, eax
je 0x405413
push 0x1000
lea eax, [ebp - 0x152c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1534], 0
lea eax, [ebp - 0x1534]
push eax
push 0x1000
lea eax, [ebp - 0x152c]
push eax
call esi
test eax, eax
je 0x405413
mov eax, dword [ebp - 0x1534]
xor ebx, ebx
shr eax, 2
mov dword [ebp - 0x153c], eax
mov dword [ebp - 0x1530], 0
mov dword [ebp - 0x1538], 0
test eax, eax
je 0x4053fa
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 0x4053bf
mov eax, dword [ebp - 0x1540]
test eax, eax
je 0x4052cd
push 0x105
lea ecx, [ebp - 0x10c]
push ecx
push esi
call eax
test eax, eax
jne 0x4052f4
mov eax, dword [ebp - 0x1544]
test eax, eax
je 0x4053a5
push 0x105
lea ecx, [ebp - 0x10c]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x4053a5
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 0x4053a5
lea eax, [ebp - 0x31c]
push eax
push str..exe
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4053a5
push edi
push 0x2000e
push esi
call dword [ebp - 0x1548]
test eax, eax
je 0x4053a5
mov eax, dword [edi]
test eax, eax
je 0x4053b2
lea ecx, [ebp - 0x1538]
push ecx
push 4
lea ecx, [ebp - 0x1530]
push ecx
push 0xc
push eax
call dword [ebp - 0x154c]
test eax, eax
je 0x4053a5
mov eax, dword [ebp - 0x1550]
cmp dword [ebp - 0x1530], eax
je 0x4053e5
mov eax, dword [edi]
test eax, eax
je 0x4053b2
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 - 0x153c]
jb 0x405230
cmp dword [edi], 0
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041873e
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.0041873e
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.0041873e
mov esp, ebp
pop ebp
ret 8