Function at 0x45ae70
Capabilities:
Enumerate processes
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7ca6
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x511070]
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 esi, ecx
mov dword [ebp - 0x658], esi
push 0x208
xor ebx, ebx
mov dword [ebp - 0x660], 0
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x650]
push 0x22c
push ebx
push eax
call fcn.004a8960
add esp, 0xc
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x45aef1
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x654], eax
mov dword [ebp - 4], 0
call fcn.0045ae00
mov eax, dword [0x511ea4]
cmp eax, 0xffffffff
jne 0x45af49
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
test edi, edi
je 0x45af62
push 0x511ea4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x45af62
mov eax, dword [0x511ea4]
test eax, eax
je 0x45af6c
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x45af7b
push 0x80004005
call fcn.0041cdf0
mov dword [0x511ea4], 0
test esi, esi
jne 0x45b0c0
xor ecx, ecx
jmp 0x45b0d4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x65c], eax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004a8960
movzx eax, word [esi]
add esp, 0xc
push eax
lea eax, [ebp - 0x65c]
push 0x4f58b8
push eax
call fcn.00421db0
mov edi, dword [ebp - 0x65c]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45afe0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x654]
call fcn.0041ccd0
mov esi, dword [ebp - 0x654]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x45b03e
lea eax, [ecx - 1]
test eax, eax
js 0x45b071
cmp eax, ecx
jg 0x45b071
movzx eax, word [esi + eax*2]
cmp eax, 0x5c
je 0x45b03e
cmp eax, 0x2f
je 0x45b03e
push str.0s
lea ecx, [ebp - 0x654]
call fcn.0041c190
mov esi, dword [ebp - 0x654]
mov edx, dword [ebp - 0x658]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x658], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b050
sub ecx, dword [ebp - 0x658]
sar ecx, 1
cmp ecx, 3
jbe 0x45b0a2
add edx, 6
jne 0x45b07b
xor ecx, ecx
jmp 0x45b08f
push 0x80070057
call fcn.0041cdf0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b080
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x654]
call fcn.0041c490
mov esi, dword [ebp - 0x654]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45b0e7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45b0e7
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b0c5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x654]
call fcn.0041ccd0
mov esi, dword [ebp - 0x654]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x45b1f7
lea eax, [ebp - 0x650]
mov dword [ebp - 0x650], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45b1f0
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 0x45b1be
test eax, eax
je 0x45b1be
cmp eax, 4
je 0x45b1be
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x45b1be
call fcn.0048a560
test eax, eax
je 0x45b17e
mov eax, dword [0x515340]
test eax, eax
je 0x45b17e
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push ebx
call eax
jmp 0x45b198
mov eax, dword [0x515344]
test eax, eax
je 0x45b1b5
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0
push ebx
call eax
test eax, eax
je 0x45b1b5
cmp eax, dword [esi - 0xc]
jne 0x45b1b5
lea eax, [ebp - 0x420]
push eax
push esi
call fcn.004abafd
add esp, 8
test eax, eax
je 0x45b1db
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea eax, [ebp - 0x650]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x45b1e5
mov ecx, dword [ebp - 0x658]
jmp 0x45b130
mov dword [ebp - 0x660], 1
test ebx, ebx
je 0x45b1f0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
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 0x45b216
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x660]
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.004a5d13
mov esp, ebp
pop ebp
ret