Function at 0x401270
Capabilities:
Enumerate processes
Get disk information
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43b566
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x670]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x25a]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0x260], bx
call fcn.00420090
push 0x228
lea ecx, [esp + 0x38]
push ebx
push ecx
mov dword [esp + 0x3c], ebx
call fcn.00420090
mov edx, dword [0x44bcf4]
mov eax, dword [edx + 0xc]
add esp, 0x18
mov ecx, 0x44bcf4
mov dword [esp + 0x1c], ebx
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x678], ebx
call fcn.004011b0
cmp dword [0x44b688], 0xffffffff
jne 0x401447
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x401351
push 0x44b688
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
jne 0x401447
mov dword [0x44b688], ebx
cmp esi, ebx
je 0x401371
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401360
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x14]
call fcn.00401ec0
mov ecx, dword [esp + 0x10]
push ecx
push str.KillProcessByPath_path:_ws
push 0x44cfe0
call fcn.00412920
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
je 0x40165b
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x401654
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x20]
je 0x401632
test eax, eax
je 0x401632
cmp eax, 4
je 0x401632
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [esp + 0x14], eax
je 0x401632
call fcn.00401220
test eax, eax
je 0x4015a4
mov eax, dword [0x44cb7c]
test eax, eax
je 0x4015a4
mov edx, dword [esp + 0x14]
push 0x104
lea ecx, [esp + 0x258]
push ecx
push edx
call eax
jmp 0x4015c3
cmp dword [0x44b688], ebx
je 0x401357
mov edx, dword [0x44bcf4]
mov eax, dword [edx + 0xc]
mov ecx, 0x44bcf4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x206
lea ecx, [esp + 0x462]
push ebx
mov byte [esp + 0x680], 1
push ecx
mov word [esp + 0x468], bx
call fcn.00420090
movzx edx, word [esi]
push edx
push 0x43fd04
lea edi, [esp + 0x2c]
call fcn.00402160
mov edi, dword [esp + 0x2c]
add esp, 0x14
push 0x104
lea eax, [esp + 0x460]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [esp + 0x45c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4014c4
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x45c]
mov ebx, eax
push ecx
lea eax, [esp + 0x14]
call fcn.00401ec0
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x401525
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40159a
cmp ecx, eax
jg 0x40159a
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x401525
cmp ax, 0x2f
je 0x401525
push 1
push 0x43fc94
lea edx, [esp + 0x18]
push edx
call fcn.00402020
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401530
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x40156d
add esi, 6
jne 0x40154d
xor eax, eax
jmp 0x401561
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401552
sub eax, edx
sar eax, 1
push eax
push esi
lea eax, [esp + 0x18]
push eax
call fcn.00402020
lea eax, [edi - 0x10]
mov byte [esp + 0x678], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40137b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40137b
push 0x80070057
call fcn.00401000
mov eax, dword [0x44cb78]
test eax, eax
je 0x40161f
mov edx, dword [esp + 0x14]
push 0x104
lea ecx, [esp + 0x258]
push ecx
push 0
push edx
call eax
test eax, eax
je 0x40161f
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 0xc]
jne 0x40161f
lea eax, [esp + 0x254]
push eax
push ecx
call fcn.0041c694
add esp, 8
test eax, eax
jne 0x40161f
mov ecx, dword [esp + 0x14]
push eax
push ecx
call esi
lea edx, [esp + 0x254]
mov edi, eax
mov eax, dword [esp + 0x2c]
push edx
push eax
call ebx
push eax
push edi
push str.Terminate_Process_return:_d__error:_d__pid:_d__path:_ws
push 0x44cfe0
call fcn.00412920
add esp, 0x18
test edi, edi
mov edi, dword [esp + 0x18]
jne 0x40161f
add dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0
lea edx, [esp + 0x24]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4013db
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401654
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x678], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401686
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x670]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x658]
xor ecx, esp
call fcn.0041cb94
mov esp, ebp
pop ebp
ret