Function at 0x405a50
Capabilities:
Enumerate process modules
Read .ini file
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x415ae6
mov eax, dword fs:[0]
push eax
mov eax, 0x1478
call fcn.00413d90
mov eax, dword [0x41a2f0]
xor eax, esp
mov dword [esp + 0x1474], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a2f0]
xor eax, esp
push eax
lea eax, [esp + 0x148c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x1389]
push ebx
xor edi, edi
push eax
mov dword [esp + 0x20], edi
mov byte [esp + 0x1390], bl
call fcn.00409500
push 0x103
lea ecx, [esp + 0x1291]
push ebx
push ecx
mov byte [esp + 0x1298], bl
call fcn.00409500
push 0x103
lea edx, [esp + 0x1095]
push ebx
push edx
mov byte [esp + 0x109c], bl
call fcn.00409500
xor esi, esi
add esp, 0x24
mov dword [esp + 0x18], vtable.CBsTree_char_.0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1494], ebx
lea ebx, [esp + 0x1384]
call fcn.00403250
xor ebx, ebx
cmp eax, ebx
je 0x405dd6
push str.WzCaution.INI
lea eax, [esp + 0x1388]
push eax
push str._s_s
mov ecx, 0x104
lea edi, [esp + 0x128c]
call fcn.00401bb0
push 0x31
lea ecx, [esp + 0x1055]
push ebx
push ecx
mov dword [esp + 0x38], 0x405a00
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x105c], bl
call fcn.00409500
push ebx
push str.Item_d
lea ecx, [esi + 0x32]
lea edi, [esp + 0x1064]
call fcn.00401bb0
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x20
lea edx, [esp + 0x1280]
push edx
push 0x104
lea eax, [esp + 0x1080]
push eax
push str.END_ITEM
mov ecx, edi
push ecx
push str.Programs
call ebp
push 0xffffffffffffffff
push str.END_ITEM
push 0xffffffffffffffff
lea edx, [esp + 0x1084]
push edx
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
je 0x405c7f
push 0x32
call fcn.00407bf9
mov esi, eax
lea eax, [esp + 0x107c]
push eax
push 0x32
push esi
call fcn.004087e3
add esp, 0x10
push esi
lea edi, [esp + 0x1c]
call fcn.00406ed0
push 0x31
lea ecx, [esp + 0x1049]
push 0
push ecx
inc ebx
mov byte [esp + 0x1050], 0
call fcn.00409500
push ebx
push str.Item_d
mov ecx, 0x32
lea edi, [esp + 0x1058]
call fcn.00401bb0
add esp, 0x14
lea edx, [esp + 0x1280]
push edx
push 0x104
lea eax, [esp + 0x1080]
push eax
push str.END_ITEM
mov ecx, edi
push ecx
push str.Programs
call ebp
push 0xffffffffffffffff
push str.END_ITEM
push 0xffffffffffffffff
lea edx, [esp + 0x1084]
push edx
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x405bd6
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
push 0x1000
lea ecx, [esp + 0x4c]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x405d96
mov ebx, dword [esp + 0x38]
shr ebx, 2
xor ebp, ebp
mov dword [esp + 0x14], ebx
test ebx, ebx
jbe 0x405d8e
mov edi, dword [esp + ebp*4 + 0x44]
test edi, edi
je 0x405d85
mov edx, dword [str._unknown_]
mov eax, dword [0x418498]
mov cx, word [0x41849c]
push 0xfa
mov dword [esp + 0x1180], edx
lea edx, [esp + 0x118a]
push 0
push edx
mov dword [esp + 0x118c], eax
mov word [esp + 0x1190], cx
call fcn.00409500
add esp, 0xc
push edi
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x40], esi
mov byte [esp + 0x1494], 1
test esi, esi
je 0x405d6e
lea eax, [esp + 0x3c]
push eax
push 4
lea ecx, [esp + 0x3c]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x405d6e
mov eax, dword [esp + 0x34]
push 0x104
lea edx, [esp + 0x1180]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x405d6e
lea ebx, [esp + 0x117c]
lea edi, [esp + 0x18]
call fcn.00406f90
test eax, eax
je 0x405d6a
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x1494], 0
test esi, esi
je 0x405d81
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
inc ebp
cmp ebp, ebx
jb 0x405cb0
mov dword [esp + 0x14], 1
test esi, esi
je 0x405dd0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x405daa
push 1
push 1
call fcn.004070a0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x405dba
push 1
push 1
call fcn.004070a0
mov ecx, dword [esi + 4]
push ecx
call fcn.004087d8
mov edx, dword [esi]
mov eax, dword [edx]
add esp, 4
push 1
mov ecx, esi
call eax
mov eax, dword [esp + 0x14]
jmp 0x405dd8
mov eax, edi
mov ecx, dword [esp + 0x148c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1474]
xor ecx, esp
call fcn.004075fb
add esp, 0x1484
ret