Function at 0x41de20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x449314]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x62c], eax
test eax, eax
jne 0x41de55
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x214]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x41e02f
push 0x208
lea eax, [ebp - 0x41c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x440130]
lea edi, [ebp - 0x214]
movzx ecx, word [ebp - 0x214]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ax, word [0x440134]
mov word [ebp - 8], ax
mov dword [ebp - 0x628], ebx
nop dword [eax]
nop word [eax + eax]
push 0x104
lea eax, [ebp - 0x41c]
mov word [ebp - 0xc], cx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x41e005
lea esi, [ebp - 0x41c]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41df00
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x41e005
push esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x62c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [ebp - 0x628], ecx
test eax, eax
jne 0x41e010
mov eax, dword [ebp - 0x62c]
cmp word [eax + esi*2], 0x5c
lea esi, [eax + esi*2]
jne 0x41e010
push 0x208
lea eax, [ebp - 0x624]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0xc]
push eax
push 0x440138
lea eax, [ebp - 0x624]
push 0x104
push eax
call fcn.0041ee00
mov ebx, eax
add esp, 0x20
test ebx, ebx
js 0x41e005
mov esi, dword [ebp - 0x62c]
lea eax, [ebp - 0x624]
lea edx, [eax + 2]
mov dword [esi], 0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41dfa7
sub eax, edx
sar eax, 1
cmp eax, 0x7ffffffe
jbe 0x41dfc4
mov ebx, 0x80070057
jmp 0x41e005
lea ebx, [ebp - 0x624]
mov edx, 0x104
mov ecx, esi
sub ebx, esi
test eax, eax
je 0x41dfec
movzx esi, word [ebx + ecx]
test si, si
je 0x41dfec
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x41dfd3
test edx, edx
lea eax, [ecx - 2]
mov ebx, 0x8007007a
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
test edx, edx
cmovne ebx, eax
mov ecx, dword [ebp - 0x628]
nop dword [eax + eax]
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x41e010
test ecx, ecx
jne 0x41e090
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x41ded0
jmp 0x41e090
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x41e044
movzx ebx, bx
or ebx, 0x80070000
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x41e090
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x41e090
test byte [ecx + 8], 1
je 0x41e090
cmp byte [ecx + 0xf], 9
jb 0x41e090
push 0
push 4
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], ebx
push eax
push 0x11
push str.GetImageFilePath
push 0x18
push 0x43fe94
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x28
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043624e
mov esp, ebp
pop ebp
ret 4