Function at 0x422210
Capabilities:
Enumerate processes
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4e3b56
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.004be240
push 0x228
lea ecx, [esp + 0x34]
push esi
push ecx
mov dword [esp + 0x38], esi
call fcn.004be240
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
add esp, 0x18
mov ecx, 0x5143cc
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x668], esi
call fcn.004221a0
call fcn.00422680
test eax, eax
je 0x422404
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143cc
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.004be240
movzx edx, word [ebp]
push edx
push 0x4f2df8
lea edi, [esp + 0x2c]
call fcn.00406130
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 0x422330
sub eax, edx
sar eax, 1
lea edx, [esp + 0x454]
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.00401470
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x42238e
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4223fa
cmp ecx, eax
jg 0x4223fa
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x42238e
cmp ax, 0x2f
je 0x42238e
mov edx, 0x4f09a4
lea edi, [esp + 0x14]
call fcn.004139a0
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422393
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x4223d0
add ebp, 6
jne 0x4223b0
xor eax, eax
jmp 0x4223c4
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4223b5
sub eax, edx
sar eax, 1
push eax
push ebp
lea eax, [esp + 0x1c]
push eax
call fcn.004060a0
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 0x42242c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42242c
push 0x80070057
call fcn.00401350
cmp ebp, esi
jne 0x42240c
xor eax, eax
jmp 0x422420
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x422411
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x18]
call fcn.00401470
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42252d
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 0x42252a
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 0x422506
test eax, eax
je 0x422506
cmp eax, 4
je 0x422506
push eax
push 0
push 0x410
call edi
mov esi, eax
test esi, esi
je 0x422506
call fcn.00422680
test eax, eax
je 0x4224c4
mov eax, dword [0x51554c]
test eax, eax
je 0x4224c4
push 0x104
lea edx, [esp + 0x250]
push edx
push esi
call eax
jmp 0x4224df
mov eax, dword [0x515548]
test eax, eax
je 0x422501
push 0x104
lea ecx, [esp + 0x250]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x422501
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 0xc]
jne 0x422501
lea edx, [esp + 0x24c]
push edx
push ecx
call fcn.004b9d0f
add esp, 8
test eax, eax
je 0x42251b
push esi
call ebx
xor esi, esi
lea eax, [esp + 0x20]
push eax
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x422471
jmp 0x422523
mov dword [esp + 0x1c], 1
test esi, esi
je 0x42252a
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 0x422558
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.004b83ee
add esp, 0x658
ret