Function at 0x502ac0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x56e3a1
mov eax, dword fs:[0]
push eax
mov eax, 0x1480
call fcn.0053fde0
mov eax, dword [0x5bda40]
xor eax, esp
mov dword [esp + 0x147c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bda40]
xor eax, esp
push eax
lea eax, [esp + 0x1494]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14a4]
mov esi, ecx
push eax
lea ecx, [esp + 0x104c]
call fcn.004020a0
xor edi, edi
push esi
lea ecx, [esp + 0x1068]
mov dword [esp + 0x14a0], edi
call fcn.004020a0
lea ecx, [esp + 0x1048]
mov byte [esp + 0x149c], 1
mov dword [esp + 0x18], edi
call fcn.00402120
test al, al
je 0x502b76
lea ecx, [esp + 0x1064]
call fcn.00402120
test al, al
je 0x502b76
lea ecx, [esp + 0x1064]
call fcn.004020e0
lea ecx, [esp + 0x1048]
call fcn.004020e0
xor eax, eax
jmp 0x502e15
lea eax, [esp + 0x20]
push eax
push 0x1000
lea ecx, [esp + 0x34]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x502b57
lea edi, [esp + 0x1048]
call fcn.00503c50
lea edi, [esp + 0x1064]
call fcn.00503c50
mov ecx, dword [esp + 0x20]
shr ecx, 2
mov eax, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
cmp ecx, eax
jbe 0x502df9
cmp dword [esp + eax*4 + 0x2c], 0
je 0x502dc9
mov edx, dword [0x5a3b60]
mov esi, dword [str._unknown_]
mov edi, dword [0x5a3b54]
mov ebp, dword [0x5a3b58]
mov ebx, dword [0x5a3b5c]
push 0x1f4
lea eax, [esp + 0x12a0]
push 0
push eax
mov dword [esp + 0x1294], esi
mov dword [esp + 0x1298], edi
mov dword [esp + 0x129c], ebp
mov dword [esp + 0x12a0], ebx
mov dword [esp + 0x12a4], edx
call fcn.0053f680
mov ecx, dword [0x5a3b60]
push 0x1f4
lea edx, [esp + 0x10a4]
push 0
push edx
mov dword [esp + 0x1098], esi
mov dword [esp + 0x109c], edi
mov dword [esp + 0x10a0], ebp
mov dword [esp + 0x10a4], ebx
mov dword [esp + 0x10a8], ecx
call fcn.0053f680
mov ebx, dword [esp + 0x14c0]
add esp, 0x18
test ebx, ebx
je 0x502c7f
mov eax, dword [esp + 0x14]
mov eax, dword [esp + eax*4 + 0x2c]
push eax
push 0
push 0x411
jmp 0x502c8f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + ecx*4 + 0x2c]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x502ce1
lea edx, [esp + 0x28]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x502ce1
mov edx, dword [esp + 0x1c]
push 0x104
lea ecx, [esp + 0x128c]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
mov ecx, dword [esp + 0x1c]
push 0x104
lea eax, [esp + 0x1084]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea ecx, [esp + 0x102c]
call fcn.00402070
lea ecx, [esp + 0x1048]
mov byte [esp + 0x149c], 2
call fcn.00402120
test al, al
jne 0x502d45
lea edx, [esp + 0x1288]
push edx
push 0x5a3700
lea ecx, [esp + 0x1034]
call fcn.00503d40
lea edi, [esp + 0x1034]
call fcn.00503c50
lea eax, [esp + 0x1050]
push eax
mov ecx, edi
push ecx
call fcn.00416980
add esp, 0x10
test al, al
jne 0x502dd8
lea ecx, [esp + 0x1064]
call fcn.00402120
test al, al
jne 0x502da6
lea edx, [esp + 0x1080]
push edx
push 0x5a3700
lea ecx, [esp + 0x1034]
call fcn.00503d40
lea edi, [esp + 0x1034]
call fcn.00503c50
mov eax, edi
push eax
lea ecx, [esp + 0x1070]
call fcn.00504120
add esp, 0xc
cmp eax, 0xffffffff
je 0x502da6
mov dword [esp + 0x18], 1
test ebx, ebx
je 0x502da6
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x102c]
mov byte [esp + 0x149c], 1
call fcn.004020e0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, ecx
jb 0x502bc2
jmp 0x502df9
mov dword [esp + 0x18], 1
test ebx, ebx
je 0x502ded
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
lea ecx, [esp + 0x102c]
call fcn.004020e0
lea ecx, [esp + 0x1064]
call fcn.004020e0
lea ecx, [esp + 0x1048]
call fcn.004020e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1494]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x147c]
xor ecx, esp
call fcn.00538a54
add esp, 0x148c
ret