Function at 0x454580
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a474
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x188], edi
xor ebx, ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 4], ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x164], 0x5c3a43
push 0x2b7a
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push ebx
push ebx
push 0x1009
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x184], ebx
cmp ebx, 0x1a
jge 0x4547e0
lea ecx, [ebx + 0x41]
mov byte [ebp - 0x164], cl
lea edx, [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x180], eax
cmp eax, 5
ja case.0x454579.1
jmp dword [eax*4 + 0x454918]
mov eax, dword [0x5bfd6c]
push eax
push 0x2b7c
lea ecx, [ebp - 0x17c]
call fcn.00406200
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x17c]
lea edx, [ebp - 0x54]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4545a3
mov byte [ebp - 4], 2
mov byte [ebp - 4], al
lea ecx, [ebp - 0x17c]
call fcn.004bfa40
jmp 0x4546d8
mov ecx, dword [0x5bfd6c]
push ecx
push 0x2b7d
lea ecx, [ebp - 0x174]
call fcn.00406200
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x174]
lea edx, [ebp - 0x54]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4545e8
mov byte [ebp - 4], 4
mov byte [ebp - 4], al
lea ecx, [ebp - 0x174]
call fcn.004bfa40
jmp 0x4546d8
mov edx, dword [0x5bfd6c]
push edx
push 0x2b7e
lea ecx, [ebp - 0x168]
call fcn.00406200
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x168]
lea edx, [ebp - 0x54]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x454630
mov byte [ebp - 4], 6
mov byte [ebp - 4], al
lea ecx, [ebp - 0x168]
call fcn.004bfa40
jmp 0x4546d8
mov eax, dword [0x5bfd6c]
push eax
push 0x2b7f
lea ecx, [ebp - 0x170]
call fcn.00406200
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x170]
lea edx, [ebp - 0x54]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x454674
mov byte [ebp - 4], 8
mov byte [ebp - 4], al
lea ecx, [ebp - 0x170]
call fcn.004bfa40
jmp 0x4546d8
mov ecx, dword [0x5bfd6c]
push ecx
push 0x2b80
lea ecx, [ebp - 0x178]
call fcn.00406200
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x178]
lea edx, [ebp - 0x54]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4546b6
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], al
lea ecx, [ebp - 0x178]
call fcn.004bfa40
jmp 0x4546d8
mov byte [ebp - 0x54], 0
push 0x54f15a
lea ecx, [ebp - 0x160]
call fcn.004c1780
mov byte [ebp - 4], 0xb
lea edx, [edi + ebx*8 + 0x6c]
push edx
lea eax, [ebp - 0x160]
push eax
mov ecx, edi
call fcn.00451f60
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebx + 0x41]
push edx
push str._c:__s
lea eax, [ebp - 0x158]
push eax
call fcn.004ff1e4
push 0x34
push 0
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.004ff6f0
add esp, 0x1c
mov dword [ebp - 0x1bc], 5
lea edx, [ebp - 0x164]
mov dword [ebp - 0x1a8], edx
mov dword [ebp - 0x1b8], ebx
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x1b4], 0
lea ecx, [ebp - 0x1bc]
push ecx
push 0
push 0x1007
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov dword [ebp - 0x284], 1
lea edx, [ebp - 0x54]
mov dword [ebp - 0x278], edx
lea eax, [ebp - 0x28c]
push eax
push edi
push 0x102e
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x21c], 2
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x210], ecx
lea edx, [ebp - 0x224]
push edx
push edi
push 0x102e
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x160]
call fcn.004bfa40
inc ebx
mov edi, dword [ebp - 0x188]
jmp 0x454545
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x54f15a
lea ecx, [ebp - 0x15c]
call fcn.004c1780
mov byte [ebp - 4], 0xc
lea eax, [edi + ebx*8 + 0x6c]
push eax
lea ecx, [ebp - 0x15c]
push ecx
mov ecx, edi
call fcn.00451f60
mov dword [ebp - 0x158], 0x434e55
push 0x34
xor edi, edi
push edi
lea edx, [ebp - 0x1bc]
push edx
call fcn.004ff6f0
add esp, 0xc
mov dword [ebp - 0x1bc], 5
lea eax, [ebp - 0x158]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 0x19c], edi
mov dword [ebp - 0x1b4], edi
lea ecx, [ebp - 0x1bc]
push ecx
push edi
push 0x1007
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
mov edi, 2
mov dword [ebp - 0x1e0], edi
mov dword [ebp - 0x1e4], edi
lea edx, [ebp - 0x1f0]
push edx
push 0
push 0x102b
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x250], edi
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x244], eax
lea ecx, [ebp - 0x258]
push ecx
push ebx
push 0x102e
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x16c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call fcn.004bfa40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret