Function at 0x40a420
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1554
call fcn.0043c5b0
mov eax, dword [0x44f1a0]
xor eax, esp
mov dword [esp + 0x1550], eax
mov eax, dword [esp + 0x155c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebp
mov ebp, dword [esp + 0x1560]
push esi
mov esi, ecx
mov dword [ebp], 0
cmp dword [esi + 8], 0
push edi
mov dword [esp + 0x34], eax
jne 0x40a46d
push str.Kernel32.dll
call ebx
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x40a751
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push eax
call edi
test eax, eax
je 0x40a751
call eax
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x40a751
cmp dword [esi + 0xc], 0
jne 0x40a4ad
push str.psapi.dll
call ebx
mov dword [esi + 0xc], eax
cmp dword [esi + 4], 0
jne 0x40a4bd
push str.advapi32.dll
call ebx
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40a751
cmp dword [esi + 4], 0
je 0x40a751
push str.EnumProcesses
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.GetModuleFileNameExA
push ecx
mov ebx, eax
call edi
mov edx, dword [esi + 0xc]
push str.GetProcessImageFileNameA
push edx
mov dword [esp + 0x20], eax
call edi
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
push 0x446c58
push eax
call edi
mov ecx, dword [esi + 4]
push 0x446c6c
push ecx
mov dword [esp + 0x28], eax
call edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x30], eax
je 0x40a751
cmp dword [esp + 0x18], edi
jne 0x40a532
cmp dword [esp + 0x14], edi
je 0x40a751
cmp dword [esp + 0x20], edi
je 0x40a751
cmp eax, edi
je 0x40a751
push 0xffc
lea edx, [esp + 0x40]
push edi
push edx
mov dword [esp + 0x44], edi
call fcn.0042ca00
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x1000
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x28], edi
call ebx
test eax, eax
je 0x40a751
mov eax, dword [esp + 0x1c]
shr eax, 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], edi
je 0x40a747
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a5a0
push 0x105
lea edx, [esp + 0x103c]
push 0
push edx
call fcn.0042ca00
push 0x105
lea eax, [esp + 0x1468]
push 0
push eax
call fcn.0042ca00
push 0x105
lea ecx, [esp + 0x136c]
push 0
push ecx
call fcn.0042ca00
push 0x105
lea edx, [esp + 0x1168]
push 0
push edx
call fcn.0042ca00
push 0x105
lea eax, [esp + 0x127c]
push 0
push eax
call fcn.0042ca00
mov ecx, dword [esp + edi*4 + 0x74]
add esp, 0x3c
push ecx
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40a723
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a63f
push 0x105
lea edx, [esp + 0x103c]
push edx
push esi
call eax
test eax, eax
jne 0x40a665
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40a70f
push 0x105
lea ecx, [esp + 0x103c]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x40a70f
push 0x104
lea edx, [esp + 0x124c]
push edx
push 0x104
lea eax, [esp + 0x114c]
push eax
push 0x104
lea ecx, [esp + 0x1364]
push ecx
push 0x104
lea edx, [esp + 0x1474]
push edx
lea eax, [esp + 0x1058]
push eax
call fcn.0042d810
lea ecx, [esp + 0x1164]
push ecx
push str.explorer
call fcn.0042d7c0
add esp, 0x2c
test eax, eax
jne 0x40a70f
lea edx, [esp + 0x1248]
push edx
push str..exe
call fcn.0042d7c0
add esp, 8
test eax, eax
jne 0x40a70f
push ebp
push 0x2000e
push esi
call dword [esp + 0x2c]
test eax, eax
je 0x40a70f
mov eax, dword [ebp]
test eax, eax
je 0x40a719
lea ecx, [esp + 0x2c]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push 0xc
push eax
call dword [esp + 0x44]
test eax, eax
je 0x40a70f
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x10], eax
je 0x40a73a
mov eax, dword [ebp]
test eax, eax
je 0x40a719
push eax
call ebx
push esi
mov dword [ebp], 0
call ebx
add edi, 1
cmp edi, dword [esp + 0x28]
jb 0x40a5a0
xor eax, eax
cmp dword [ebp], eax
setne al
jmp 0x40a753
push esi
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov dword [edx], ecx
xor eax, eax
cmp dword [ebp], eax
setne al
jmp 0x40a753
xor al, al
mov ecx, dword [esp + 0x1560]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042b9ba
add esp, 0x1554
ret 8