Function at 0x40aa20
Capabilities:
Enumerate processes
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422836
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x208
xor edi, edi
mov dword [ebp - 0x65c], 0
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.0040f860
add esp, 0xc
lea eax, [ebp - 0x650]
push 0x22c
push edi
push eax
call fcn.0040f860
add esp, 0xc
call fcn.00402780
mov ecx, eax
test ecx, ecx
jne 0x40aa9b
push 0x80004005
call fcn.00405f60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x654], eax
mov dword [ebp - 4], 0
call fcn.0040a550
mov eax, dword [0x42d9c8]
cmp eax, 0xffffffff
jne 0x40aaf3
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40ab0c
push 0x42d9c8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x40ab0c
mov eax, dword [0x42d9c8]
test eax, eax
je 0x40ab16
call fcn.00402780
mov ecx, eax
test ecx, ecx
jne 0x40ab25
push 0x80004005
call fcn.00405f60
mov dword [0x42d9c8], 0
test ebx, ebx
jne 0x40ac1c
xor ecx, ecx
jmp 0x40ac30
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x658], eax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0040f860
movzx eax, word [ebx]
add esp, 0xc
push eax
lea eax, [ebp - 0x658]
push 0x429ed0
push eax
call fcn.00408340
mov esi, dword [ebp - 0x658]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab94
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x654]
call fcn.00405760
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40abc0
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40abfe
add ebx, 6
jne 0x40abdd
xor ecx, ecx
jmp 0x40abf1
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40abe2
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x654]
call fcn.004059a0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ac3d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40ac3d
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac21
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x654]
call fcn.00405760
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, dword [ebp - 0x654]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ad5f
lea eax, [ebp - 0x650]
mov dword [ebp - 0x650], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40ad58
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov dword [ebp - 0x658], ecx
nop word [eax + eax]
mov eax, dword [ebp - 0x648]
cmp eax, ecx
je 0x40ad26
test eax, eax
je 0x40ad26
cmp eax, 4
je 0x40ad26
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40ad26
call fcn.00406540
test eax, eax
je 0x40ace6
mov eax, dword [0x42e7a4]
test eax, eax
je 0x40ace6
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push edi
call eax
jmp 0x40ad00
mov eax, dword [0x42e7a8]
test eax, eax
je 0x40ad1d
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0
push edi
call eax
test eax, eax
je 0x40ad1d
cmp eax, dword [esi - 0xc]
jne 0x40ad1d
lea eax, [ebp - 0x420]
push eax
push esi
call fcn.00414dc6
add esp, 8
test eax, eax
je 0x40ad43
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
lea eax, [ebp - 0x650]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40ad4d
mov ecx, dword [ebp - 0x658]
jmp 0x40ac90
mov dword [ebp - 0x65c], 1
test edi, edi
je 0x40ad58
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ad7e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x65c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d320
mov esp, ebp
pop ebp
ret