Function at 0x421f65
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x4f0
mov eax, dword [0x4806f0]
xor eax, ebp
mov dword [ebp + 0x188], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x194]
mov esi, ecx
lea ecx, [ebp + 0x6c]
mov dword [ebp + 0x74], edi
call fcn.0042ef80
lea eax, [ebp + 0x6c]
push eax
push 0xb2
mov ecx, esi
call fcn.0040e38d
push 8
pop eax
xor ebx, ebx
push 0x103
mov word [edi], ax
lea eax, [ebp + 0x85]
push ebx
push eax
mov dword [edi + 8], ebx
mov byte [ebp + 0x84], bl
call fcn.0044f280
add esp, 0xc
xor eax, eax
cmp byte [ebp + 0x73], 0xff
push 7
pop ecx
lea edi, [ebp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x234]
mov dword [ebp + 0x34], eax
lea eax, [ebp + 0x84]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x38], ebx
lea eax, [ebp + 0x6c]
jne 0x421ff7
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x34]
push eax
mov dword [ebp + 0x44], 0x61
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, ebx
je 0x4222b7
lea ecx, [ebp + 0x84]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4221f4
cmp byte [ebp + 0x84], bl
je 0x42204d
lea eax, [ebp + 0x84]
cmp byte [eax], 0x2f
jne 0x422048
mov byte [eax], 0x5c
inc eax
cmp byte [eax], bl
jne 0x422040
lea eax, [ebp + 0x84]
push eax
call fcn.0044f080
pop ecx
lea ecx, [ebp + 0x84]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x42207a
lea eax, [ebp + 0x84]
push 0x4726c4
push eax
call fcn.0044f900
pop ecx
pop ecx
push 2
lea eax, [ebp + 0x84]
push 0x475d60
push eax
call fcn.004520da
add esp, 0xc
test eax, eax
je 0x4221f4
xor ecx, ecx
cmp byte [ebp + 0x84], bl
je 0x4221f4
lea eax, [ebp + 0x84]
cmp byte [eax], 0x5c
jne 0x4220b2
inc ecx
inc eax
cmp byte [eax], bl
jne 0x4220ac
cmp ecx, 1
jle 0x4221f4
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp - 4]
call fcn.00437e60
lea ecx, [ebp - 4]
call fcn.00437ff0
test eax, eax
jne 0x4221ec
lea ecx, [ebp + 0x54]
call fcn.00438f70
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp + 0x54]
call fcn.004387f0
lea ecx, [ebp + 0x54]
call fcn.004388b0
test eax, eax
je 0x4221e4
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4221e4
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp + 0x78]
call fcn.0042f200
push 0x1a9
push 3
lea eax, [ebp + 0x64]
push eax
lea ecx, [ebp + 0x78]
call fcn.0042f880
push eax
mov ecx, esi
call fcn.0040e5a8
test eax, eax
lea ecx, [ebp + 0x64]
setge byte [ebp + 0x83]
call fcn.0042f1e0
cmp byte [ebp + 0x83], bl
jne 0x42222b
push 0x473fb4
lea ecx, [esi + 0x218]
call fcn.0042f2d0
push 2
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x78]
call fcn.0042f880
push eax
lea ecx, [esi + 0x210]
call fcn.0042f220
lea ecx, [ebp + 0x2c]
call fcn.0042f1e0
push esi
lea ecx, [ebp - 0x1b4]
call fcn.0040aa10
push 7
push 0x462
lea ecx, [ebp - 0x1b4]
call fcn.0040a9c5
lea ecx, [ebp - 0x1b4]
cmp eax, 8
jne 0x4222ab
call fcn.0040aaea
lea ecx, [ebp + 0x78]
call fcn.0042f1e0
lea ecx, [ebp + 0x54]
call fcn.004387c0
lea ecx, [ebp - 4]
call fcn.00437fa0
jmp 0x421fcc
lea ecx, [ebp + 0x54]
call fcn.004387c0
lea ecx, [ebp - 4]
call fcn.00437fa0
push esi
lea ecx, [ebp - 0x364]
call fcn.0040aa10
push 2
push 0xb3
lea ecx, [ebp - 0x364]
call fcn.0040a9c5
lea ecx, [ebp - 0x364]
cmp eax, 3
jne 0x4222b2
call fcn.0040aaea
jmp 0x421fcc
cmp byte [ebp + 0x7f], 0xff
lea esi, [ebp + 0x78]
jne 0x422237
mov esi, dword [ebp + 0x78]
push ebx
push ebx
lea ecx, [ebp + 0x78]
call fcn.0042ef90
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push esi
push ebx
push ebx
call edi
mov esi, eax
push esi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [ebp + 0x74]
mov dword [ecx + 8], eax
lea ecx, [esi + esi]
push ecx
push ebx
push eax
call fcn.0044f280
add esp, 0xc
cmp byte [ebp + 0x7f], 0xff
lea eax, [ebp + 0x78]
jne 0x422277
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x74]
push esi
push dword [eax + 8]
lea ecx, [ebp + 0x78]
call fcn.0042ef90
push eax
push dword [ebp + 0x68]
push ebx
push ebx
call edi
lea ecx, [ebp + 0x78]
call fcn.0042f1e0
lea ecx, [ebp + 0x54]
call fcn.004387c0
lea ecx, [ebp - 4]
call fcn.00437fa0
jmp 0x4222b7
call fcn.0040aaea
jmp 0x422291
call fcn.0040aaea
lea ecx, [ebp + 0x6c]
call fcn.0042f1e0
mov ecx, dword [ebp + 0x188]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f6e0
add ebp, 0x18c
leave
ret 4