Function at 0x422189
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x3c], ecx
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call fcn.0044658e
mov dword [ebp - 0x34], ebx
jmp 0x4222ae
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4c8014
call fcn.004485c7
add esp, 0xc
test al, al
je 0x4221d9
mov dword [ebp - 0xc], 1
jmp 0x4222ae
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4cb36c
call fcn.004485c7
add esp, 0xc
test al, al
je 0x4221fc
mov dword [ebp - 0x10], 1
jmp 0x4222ae
mov eax, dword [ebp + 8]
push 2
pop edi
push edi
add eax, edi
push eax
push 0x4cb368
call fcn.00441277
add esp, 0xc
test al, al
je 0x4222a4
add dword [ebp + 8], 6
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x24], esi
call fcn.00405c44
mov eax, dword [ebp + 8]
cmp word [eax], bx
pop ecx
je 0x422244
mov word [eax], bx
add dword [ebp + 8], edi
push 0x3a
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00414c4e
mov eax, dword [ebp - 4]
cmp word [eax], bx
pop ecx
je 0x422286
mov word [eax], bx
mov eax, dword [ebp - 4]
add eax, edi
mov dword [ebp - 4], eax
cmp word [eax], bx
je 0x422286
mov dword [ebp - 0x18], eax
push 0x3a
lea eax, [ebp - 4]
call fcn.00414c4e
mov eax, dword [ebp - 4]
cmp word [eax], bx
pop ecx
je 0x422286
mov word [eax], bx
add dword [ebp - 4], edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00414dce
mov eax, dword [ebp + 8]
mov ax, word [eax]
pop ecx
pop ecx
call fcn.004b1b03
test al, al
je 0x4222ae
lea eax, [ebp + 8]
push eax
call fcn.00408f31
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x4221b6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x84
lea eax, [esi + 0x325]
push eax
lea ecx, [ebp - 0x40]
call fcn.004465ac
cmp dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x40]
push 2
mov dword [ebp - 0x20], eax
lea edi, [eax + esi*2]
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ebx
jne 0x4223a2
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5c
jne 0x4223a2
add dword [ebp + 8], eax
push 0x2c
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
cmp esi, ebx
je 0x422330
mov word [esi], bx
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
movzx esi, word [esi]
cmp si, bx
je 0x422330
mov dword [ebp - 0x24], esi
push dword [ebp + 8]
call fcn.004135f9
pop ecx
push edi
push 0x324
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
jmp 0x422398
mov ax, word [ebp - 0x24]
cmp word [edi], ax
jb 0x42238d
push dword [ebp + 8]
mov esi, dword [ebp - 0x20]
push edi
push str._s_sFonts
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.004b3b0b
add esp, 0x14
test eax, eax
je 0x42238d
push 0x4ca28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0xc]
push esi
call fcn.004220b7
pop ecx
pop ecx
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], bx
jne 0x42234a
jmp 0x4226cf
push dword [ebp + 8]
call fcn.004135f9
cmp dword [ebp - 0x10], ebx
pop ecx
mov dword [ebp + 8], eax
je 0x42263a
cmp dword [ebp - 0xc], ebx
je 0x4223ea
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00449a66
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
je 0x422537
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_RemoveFontMemResourceEx]
test eax, eax
je 0x422537
jmp 0x4226d2
lea ecx, [ebp - 0x58]
call fcn.0044641a
lea eax, [ebp + 8]
push 1
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0044e7a8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
je 0x4224c6
cmp word [eax], 0x23
jne 0x4224c6
mov edi, dword [ebp + 8]
mov esi, eax
inc eax
inc eax
mov dword [ebp - 0x28], eax
push str.FONT
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00457cfe
mov cx, word [esi]
mov dword [ebp - 0x48], eax
mov eax, dword [0x4e2fc8]
mov word [ebp - 0x44], cx
mov word [esi], bx
mov cx, word [edi]
add esp, 0xc
cmp cx, 0x2e
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], ebx
jne 0x42246a
cmp word [edi + 2], bx
jne 0x42246a
mov eax, dword [0x4e2c88]
jmp 0x42247c
cmp cx, bx
je 0x42247c
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
mov cx, word [ebp - 0x44]
mov word [esi], cx
je 0x42249e
push ebx
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x48]
push dword [ebp - 0x2c]
push eax
call fcn.0041593f
add esp, 0x14
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x20], ebx
je 0x4224ac
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x30], ebx
jne 0x4224c1
lea ecx, [ebp - 0x58]
call fcn.0043fe25
xor ebx, ebx
inc ebx
jmp 0x4226d2
mov esi, dword [ebp - 0x54]
jmp 0x4224d6
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 8]
call fcn.004152ea
pop ecx
pop ecx
mov esi, eax
cmp esi, 0xa
jg 0x4224ed
lea ecx, [ebp - 0x58]
call fcn.0043fe25
mov ebx, 0x80070057
jmp 0x4226d2
lea eax, [ebp - 0x4c]
push eax
push ebx
push esi
push dword [ebp - 0x58]
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x42252f
cmp dword [ebp - 0x18], ebx
je 0x422630
push ebx
push 0xffffffffffffffff
call fcn.00416215
test eax, eax
pop ecx
pop ecx
je 0x42252f
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
call dword [0x4e2f70]
cmp dword [ebp - 0x10], ebx
jne 0x42254c
lea ecx, [ebp - 0x58]
call fcn.0043fe25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x422544
xor eax, eax
inc eax
mov dword [ebp - 8], eax
jmp 0x4226a6
push esi
push dword [ebp - 0x58]
push dword [ebp - 0x10]
call dword [0x4e2f78]
push 0x190
lea ecx, [ebp - 0x38]
call fcn.00446437
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0xc]
push ecx
push eax
push 0x64
push dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], ebx
call dword [0x4e2f7c]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jle 0x422596
lea eax, [eax + eax*8 + 9]
shl eax, 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.004465d3
cmp dword [ebp - 0xc], ebx
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 8], ebx
jle 0x422618
cmp dword [ebp - 0xc], ebx
jle 0x42260d
cmp dword [ebp - 8], ebx
jle 0x4225b9
mov word [esi], 0xd
inc esi
inc esi
mov word [esi], 0xa
inc esi
inc esi
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 8]
mov word [esi], 0x22
push dword [ebp - 0x34]
inc esi
inc esi
push esi
push dword [eax + ecx*4]
call dword [0x4e2f80]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x30], esi
push 0x20
push dword [ebp - 0x30]
lea edi, [eax + eax]
add esi, edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x4225fa
mov word [esi], 0x22
inc esi
inc esi
jmp 0x42260d
mov eax, dword [ebp - 0x30]
push edi
push eax
add eax, 0xfffffffe
push eax
call fcn.004147ef
add esp, 0xc
dec esi
dec esi
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x4225a1
lea eax, [ebp - 0x10]
push eax
mov word [esi], bx
call dword [0x4e2f74]
lea ecx, [ebp - 0x38]
mov dword [ebp - 8], ebx
call fcn.0043fe25
lea ecx, [ebp - 0x58]
call fcn.0043fe25
jmp 0x4226a6
push eax
mov dword [ebp - 0x10], ebx
call fcn.004b3b0b
test eax, eax
pop ecx
je 0x422666
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004506c8
push 0x4ca28c
lea ecx, [ebp - 0x10]
call fcn.004465fa
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
push dword [ebp + 8]
push 0x4ca740
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp + 8]
call fcn.00410409
push dword [ebp + 8]
call fcn.004b3b0b
add esp, 0x14
test eax, eax
je 0x42269e
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.004220b7
pop ecx
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
call fcn.0043fe25
cmp dword [ebp - 0x24], ebx
je 0x4226bc
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push dword [ebp - 0x3c]
call fcn.004a8333
add esp, 0xc
cmp dword [ebp - 0x18], ebx
je 0x4226cf
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x18]
call fcn.00445c44
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0x40]
call fcn.0043fe25
lea ecx, [ebp - 0x1c]
call fcn.0043fe25
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4