Function at 0x451d50
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x428
mov al, byte [0x463530]
push ebx
push ebp
mov ebp, dword [esp + 0x434]
push esi
mov esi, dword [esp + 0x43c]
push edi
mov edi, dword [esp + 0x444]
xor ecx, ecx
push edi
mov dword [esp + 0x15], ecx
push esi
mov dword [esp + 0x1d], ecx
push ebp
mov byte [esp + 0x1c], al
mov byte [esp + 0x25], cl
mov dword [edi], ecx
call fcn.004523f0
add esp, 0xc
test eax, eax
jne 0x451da2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret
mov eax, dword [0x467f40]
test eax, eax
je 0x451efa
lea edx, [esp + 0x38]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
push edx
push 0x400
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ebx, eax
cmp ebx, 4
jl 0x451ec2
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esp + ebx + 0x38]
sub edi, 4
lea eax, [esp + 0x10]
push edi
push eax
sub ebx, 4
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [esp + eax + 0xf], 0
mov al, byte [esp + 0x10]
cmp al, 0x61
je 0x451eb9
cmp al, 0x41
je 0x451eb9
cmp al, 0x62
je 0x451eb9
cmp al, 0x42
je 0x451eb9
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea edx, [esp + 0x10]
push edx
call esi
cmp eax, 5
je 0x451eb9
lea eax, [esp + 0x10]
push eax
call esi
cmp eax, 4
je 0x451eb9
lea ecx, [esp + 0x10]
push ecx
call esi
test eax, eax
je 0x451eb9
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [esp + 0x2c], 0xf972
jne 0x451eb9
cmp dword [esp + 0x28], 4
jne 0x451eb9
lea ecx, [esp + 0x10]
push ecx
call fcn.004522a0
add esp, 4
test eax, eax
jne 0x451eb9
mov ecx, dword [esp + 0x440]
mov edx, dword [esp + 0x43c]
mov eax, dword [ecx]
cmp edx, eax
je 0x451ed2
inc eax
mov dword [ecx], eax
cmp ebx, 4
jge 0x451de1
pop edi
pop esi
pop ebp
mov eax, 0xffffffcb
pop ebx
add esp, 0x428
ret
mov esi, dword [esp + 0x444]
push 0x44a370
push esi
call ebp
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x428
ret
call dword [fcn.00467f38]
test al, al
je 0x451fa6
xor ecx, ecx
mov cl, ah
cmp cl, 1
jne 0x451fa6
and eax, 0xff
mov byte [esp + 0x1c], 0
mov dword [esp + 0x24], eax
jle 0x451ec2
xor bl, bl
mov byte [esp + 0x20], bl
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00452180
add esp, 8
test eax, eax
jne 0x451f4a
mov eax, dword [esi]
cmp ebp, eax
je 0x451f7a
inc eax
mov dword [esi], eax
inc bl
cmp bl, 8
mov byte [esp + 0x20], bl
jl 0x451f2b
mov al, byte [esp + 0x1c]
inc al
movsx ecx, al
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x24]
cmp ecx, eax
jl 0x451f25
pop edi
pop esi
pop ebp
mov eax, 0xffffffcb
pop ebx
add esp, 0x428
ret
push 0x44a370
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [esp + 0x1c]
add bl, 0x1e
add al, 0x1e
mov byte [edi + 5], 0x3a
mov byte [edi + 4], al
mov byte [edi + 6], bl
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x428
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffea06c
pop ebx
add esp, 0x428
ret