Function at 0x4253a0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x830
mov eax, dword [0x545628]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [esp + 0x834]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
xor ebp, ebp
mov ebx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0x400
mov dword [esp + 0x28], 0x1000
xor esi, esi
nop
test ebp, ebp
jne 0x425406
mov ecx, dword [esp + esi*4 + 0x24]
push ebx
push ebp
push ecx
call edi
inc esi
mov ebp, eax
cmp esi, 2
jb 0x4253e0
test ebp, ebp
jne 0x425406
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x4255f1
push 0x51aa04
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x4255c8
push str.ZwQueryInformationProcess
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4255ba
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0x1b
push ebp
mov dword [esp + 0x2c], 0
call esi
cmp eax, 0xc0000004
jne 0x4255ba
mov eax, dword [esp + 0x18]
push eax
call fcn.004d1df2
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push edx
mov edi, eax
push edi
push 0x1b
push ebp
mov dword [esp + 0x30], edi
call esi
test eax, eax
jne 0x4255b1
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
push eax
push 0x104
push ecx
mov byte [esp + 0x1f], 1
call fcn.004d2c76
add esp, 0xc
lea eax, [esp + 0x43c]
push eax
xor edx, edx
push 0x1ff
mov word [esp + 0x444], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4255b1
mov ecx, dword [0x52cc94]
mov dx, word [0x52cc98]
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], dx
lea edi, [esp + 0x43c]
xor bl, bl
jmp 0x4254f0
mov ax, word [edi]
push 0x104
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
mov word [esp + 0x30], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x425590
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
jmp 0x425520
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425520
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jae 0x425590
mov ecx, dword [esp + 0x14]
push esi
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.004d6116
add esp, 0xc
test eax, eax
sete bl
test bl, bl
je 0x425590
mov edx, dword [esp + 0x14]
lea eax, [edx + esi*2]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x23c]
push str._s_s
push edx
call fcn.00415670
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x244]
push eax
push 0x104
push ecx
call fcn.004d2c76
add esp, 0x1c
mov edi, edi
mov dx, word [edi]
add edi, 2
test dx, dx
jne 0x425590
test bl, bl
jne 0x4255a9
cmp word [edi], 0
jne 0x4254f0
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push edi
call fcn.004d1d15
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [esp + 0x13], 0
jne 0x4255e8
mov eax, dword [esp + 0x14]
push 0x104
xor ecx, ecx
push eax
push ecx
push ebp
mov word [eax], cx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x4255e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d158d
add esp, 0x830
ret