Function at 0x43e6c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x519220]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x834], edx
push edi
mov edi, ecx
mov dword [ebp - 0x820], 0x410
mov dword [ebp - 0x81c], 0x400
xor esi, esi
mov dword [ebp - 0x818], 0x1000
mov dword [ebp - 0x82c], ebx
test ebx, ebx
jne 0x43e744
push edi
push ebx
push dword [ebp + esi*4 - 0x820]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
inc esi
mov ebx, eax
mov dword [ebp - 0x82c], ebx
cmp esi, 3
jb 0x43e706
test ebx, ebx
jne 0x43e744
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f1b0
mov esp, ebp
pop ebp
ret
push str.ntdll.dll
mov byte [ebp - 0x822], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x838], eax
test eax, eax
je 0x43e942
push str.ZwQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x43e92d
lea eax, [ebp - 0x828]
mov dword [ebp - 0x828], 0
push eax
push 0
push 0
push 0x1b
push ebx
call esi
cmp eax, 0xc0000004
jne 0x43e92d
push dword [ebp - 0x828]
call fcn.004af1b3
push dword [ebp - 0x828]
mov edi, eax
push 0
push edi
mov dword [ebp - 0x830], edi
call fcn.00491400
add esp, 0x10
lea eax, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
push edi
push 0x1b
push ebx
call esi
test eax, eax
jne 0x43e924
cmp dword [edi + 4], eax
je 0x43e924
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x814]
push eax
push 0x1ff
mov byte [ebp - 0x822], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x43e924
mov eax, dword [0x5044d0]
lea edi, [ebp - 0x814]
mov ebx, dword [ebp - 0x830]
mov dword [ebp - 0x81c], eax
mov ax, word [0x5044d4]
mov word [ebp - 0x818], ax
mov byte [ebp - 0x821], 0
nop word [eax + eax]
mov ax, word [edi]
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x43e8fa
lea esi, [ebp - 0x20c]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x43e874
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x43e8fa
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebx + 4]
call fcn.004d9935
add esp, 0xc
test eax, eax
sete cl
mov byte [ebp - 0x821], cl
test eax, eax
jne 0x43e900
mov eax, dword [ebx + 4]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x81c]
push eax
push str._s_s
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.0043ec80
mov esi, dword [ebp - 0x834]
lea eax, [ebp - 0x414]
push 0x103
push eax
push 0x104
push esi
call fcn.004d63a9
add esp, 0x24
xor eax, eax
mov word [esi + 0x206], ax
mov cl, byte [ebp - 0x821]
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x43e900
test cl, cl
jne 0x43e918
cmp word [edi], ax
jne 0x43e840
mov ebx, dword [ebp - 0x82c]
mov edi, dword [ebp - 0x830]
push edi
call fcn.0049c7b1
add esp, 4
push dword [ebp - 0x838]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x822], 0
jne 0x43e965
mov eax, dword [ebp - 0x834]
xor ecx, ecx
push 0x104
push eax
push ecx
push ebx
mov word [eax], cx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x43e965
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f1b0
mov esp, ebp
pop ebp
ret