Function at 0x10021e32
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.10046123
mov dword [ebp - 0x34], ebx
jmp 0x10021f57
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x100c8014
call fcn.10048195
add esp, 0xc
test al, al
je 0x10021e82
mov dword [ebp - 0xc], 1
jmp 0x10021f57
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x100cb37c
call fcn.10048195
add esp, 0xc
test al, al
je 0x10021ea5
mov dword [ebp - 0x10], 1
jmp 0x10021f57
mov eax, dword [ebp + 8]
push 2
pop edi
push edi
add eax, edi
push eax
push 0x100cb378
call fcn.10040df5
add esp, 0xc
test al, al
je 0x10021f4d
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.10005b74
mov eax, dword [ebp + 8]
cmp word [eax], bx
pop ecx
je 0x10021eed
mov word [eax], bx
add dword [ebp + 8], edi
push 0x3a
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.100a1095
mov eax, dword [ebp - 4]
cmp word [eax], bx
pop ecx
je 0x10021f2f
mov word [eax], bx
mov eax, dword [ebp - 4]
add eax, edi
mov dword [ebp - 4], eax
cmp word [eax], bx
je 0x10021f2f
mov dword [ebp - 0x18], eax
push 0x3a
lea eax, [ebp - 4]
call fcn.100a1095
mov eax, dword [ebp - 4]
cmp word [eax], bx
pop ecx
je 0x10021f2f
mov word [eax], bx
add dword [ebp - 4], edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10014a3c
mov eax, dword [ebp + 8]
mov ax, word [eax]
pop ecx
pop ecx
call fcn.10002df6
test al, al
je 0x10021f57
lea eax, [ebp + 8]
push eax
call fcn.10008e60
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x10021e5f
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.10046141
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 0x1002204b
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5c
jne 0x1002204b
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 0x10021fd9
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 0x10021fd9
mov dword [ebp - 0x24], esi
push dword [ebp + 8]
call fcn.100132bf
pop ecx
push edi
push 0x324
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
jmp 0x10022041
mov ax, word [ebp - 0x24]
cmp word [edi], ax
jb 0x10022036
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.100b36d9
add esp, 0x14
test eax, eax
je 0x10022036
push 0x100ca294
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0xc]
push esi
call fcn.10021d60
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 0x10021ff3
jmp 0x10022378
push dword [ebp + 8]
call fcn.100132bf
cmp dword [ebp - 0x10], ebx
pop ecx
mov dword [ebp + 8], eax
je 0x100222e3
cmp dword [ebp - 0xc], ebx
je 0x10022093
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10049634
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
je 0x100221e0
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_RemoveFontMemResourceEx]
test eax, eax
je 0x100221e0
jmp 0x1002237b
lea ecx, [ebp - 0x58]
call fcn.10045faf
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.1004e376
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
je 0x1002216f
cmp word [eax], 0x23
jne 0x1002216f
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.100578fe
mov cx, word [esi]
mov dword [ebp - 0x48], eax
mov eax, dword [0x100e2fc0]
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 0x10022113
cmp word [edi + 2], bx
jne 0x10022113
mov eax, dword [0x100e2c88]
jmp 0x10022125
cmp cx, bx
je 0x10022125
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 0x10022147
push ebx
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x48]
push dword [ebp - 0x2c]
push eax
call fcn.100155e3
add esp, 0x14
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x20], ebx
je 0x10022155
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x30], ebx
jne 0x1002216a
lea ecx, [ebp - 0x58]
call fcn.1003f96c
xor ebx, ebx
inc ebx
jmp 0x1002237b
mov esi, dword [ebp - 0x54]
jmp 0x1002217f
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 8]
call fcn.10014f8e
pop ecx
pop ecx
mov esi, eax
cmp esi, 0xa
jg 0x10022196
lea ecx, [ebp - 0x58]
call fcn.1003f96c
mov ebx, 0x80070057
jmp 0x1002237b
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 0x100221d8
cmp dword [ebp - 0x18], ebx
je 0x100222d9
push ebx
push 0xffffffffffffffff
call fcn.10015eb9
test eax, eax
pop ecx
pop ecx
je 0x100221d8
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
call dword [0x100e2f68]
cmp dword [ebp - 0x10], ebx
jne 0x100221f5
lea ecx, [ebp - 0x58]
call fcn.1003f96c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x100221ed
xor eax, eax
inc eax
mov dword [ebp - 8], eax
jmp 0x1002234f
push esi
push dword [ebp - 0x58]
push dword [ebp - 0x10]
call dword [0x100e2f70]
push 0x190
lea ecx, [ebp - 0x38]
call fcn.10045fcc
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 [0x100e2f74]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jle 0x1002223f
lea eax, [eax + eax*8 + 9]
shl eax, 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.10046168
cmp dword [ebp - 0xc], ebx
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 8], ebx
jle 0x100222c1
cmp dword [ebp - 0xc], ebx
jle 0x100222b6
cmp dword [ebp - 8], ebx
jle 0x10022262
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 [0x100e2f78]
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 0x100222a3
mov word [esi], 0x22
inc esi
inc esi
jmp 0x100222b6
mov eax, dword [ebp - 0x30]
push edi
push eax
add eax, 0xfffffffe
push eax
call fcn.100144b5
add esp, 0xc
dec esi
dec esi
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x1002224a
lea eax, [ebp - 0x10]
push eax
mov word [esi], bx
call dword [0x100e2f6c]
lea ecx, [ebp - 0x38]
mov dword [ebp - 8], ebx
call fcn.1003f96c
lea ecx, [ebp - 0x58]
call fcn.1003f96c
jmp 0x1002234f
push eax
mov dword [ebp - 0x10], ebx
call fcn.100b36d9
test eax, eax
pop ecx
je 0x1002230f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.100502c8
push 0x100ca294
lea ecx, [ebp - 0x10]
call fcn.1004618f
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
push dword [ebp + 8]
push 0x100ca750
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp + 8]
call fcn.100100b6
push dword [ebp + 8]
call fcn.100b36d9
add esp, 0x14
test eax, eax
je 0x10022347
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.10021d60
pop ecx
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
call fcn.1003f96c
cmp dword [ebp - 0x24], ebx
je 0x10022365
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push dword [ebp - 0x3c]
call fcn.100104aa
add esp, 0xc
cmp dword [ebp - 0x18], ebx
je 0x10022378
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x18]
call fcn.100457c2
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0x40]
call fcn.1003f96c
lea ecx, [ebp - 0x1c]
call fcn.1003f96c
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4