Function at 0x422230
Capabilities:
Enumerate processes
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4e3ca6
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x648], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x660]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x670]
xor esi, esi
push 0x206
lea eax, [esp + 0x252]
push esi
push eax
mov dword [esp + 0x28], esi
mov word [esp + 0x258], si
call fcn.004be320
push 0x228
lea ecx, [esp + 0x34]
push esi
push ecx
mov dword [esp + 0x38], esi
call fcn.004be320
mov edx, dword [0x5143ac]
mov eax, dword [edx + 0xc]
add esp, 0x18
mov ecx, 0x5143ac
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x668], esi
call fcn.004221c0
call fcn.004226a0
test eax, eax
je 0x422424
mov edx, dword [0x5143ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143ac
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x206
lea ecx, [esp + 0x45a]
push esi
mov byte [esp + 0x670], 1
push ecx
mov word [esp + 0x460], si
call fcn.004be320
movzx edx, word [ebp]
push edx
push 0x4f2df8
lea edi, [esp + 0x2c]
call fcn.00406040
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push 0x104
lea eax, [esp + 0x458]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [esp + 0x454]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x422350
sub eax, edx
sar eax, 1
lea edx, [esp + 0x454]
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.00401450
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4223ae
lea ecx, [eax - 1]
test ecx, ecx
jl 0x42241a
cmp ecx, eax
jg 0x42241a
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4223ae
cmp ax, 0x2f
je 0x4223ae
mov edx, 0x4f09a4
lea edi, [esp + 0x14]
call fcn.00413750
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4223b3
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x4223f0
add ebp, 6
jne 0x4223d0
xor eax, eax
jmp 0x4223e4
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4223d5
sub eax, edx
sar eax, 1
push eax
push ebp
lea eax, [esp + 0x1c]
push eax
call fcn.00405fb0
mov byte [esp + 0x668], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42244c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42244c
push 0x80070057
call fcn.00401340
cmp ebp, esi
jne 0x42242c
xor eax, eax
jmp 0x422440
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x422431
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x18]
call fcn.00401450
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42254d
lea ecx, [esp + 0x20]
push ecx
push ebp
mov dword [esp + 0x28], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x42254a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x18]
je 0x422526
test eax, eax
je 0x422526
cmp eax, 4
je 0x422526
push eax
push 0
push 0x410
call edi
mov esi, eax
test esi, esi
je 0x422526
call fcn.004226a0
test eax, eax
je 0x4224e4
mov eax, dword [0x51552c]
test eax, eax
je 0x4224e4
push 0x104
lea edx, [esp + 0x250]
push edx
push esi
call eax
jmp 0x4224ff
mov eax, dword [0x515528]
test eax, eax
je 0x422521
push 0x104
lea ecx, [esp + 0x250]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x422521
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 0xc]
jne 0x422521
lea edx, [esp + 0x24c]
push edx
push ecx
call fcn.004b9e54
add esp, 8
test eax, eax
je 0x42253b
push esi
call ebx
xor esi, esi
lea eax, [esp + 0x20]
push eax
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x422491
jmp 0x422543
mov dword [esp + 0x1c], 1
test esi, esi
je 0x42254a
push esi
call ebx
push ebp
call ebx
mov dword [esp + 0x668], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422578
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 + 0x660]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x648]
xor ecx, esp
call fcn.004b84de
add esp, 0x658
ret