Function at 0x450570
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5421ac
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x58a710]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x304], ebx
mov dword [ebp - 0x198], 0
mov dword [ebp - 4], 0
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x4505cc
push 0x80004005
call fcn.004049a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x300], esi
mov byte [ebp - 4], 1
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x4505f3
push 0x80004005
call fcn.004049a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x308], edi
push 0
push 0
push 0x1009
push dword [ebx + 4]
mov byte [ebp - 4], 2
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x200
lea ecx, [ebp - 0x198]
call fcn.0040da70
push dword [ebp - 0x198]
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ebx, dword [ebp - 0x198]
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edx, ebx
mov dword [ebp - 0x318], eax
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x450654
sub edx, eax
je 0x450a14
push 0x160
lea eax, [ebp - 0x2f8]
push 0
push eax
call fcn.0051d400
push 0x3c
lea eax, [ebp - 0x374]
push 0
push eax
call fcn.0051d400
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x2fc], eax
test eax, eax
je 0x450a00
cmp eax, 1
je 0x450a00
push 0x104
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x338]
push eax
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4509ef
push 0
lea eax, [ebp - 0x310]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x320]
movlpd qword [ebp - 0x320], xmm0
push eax
push ebx
movlpd qword [ebp - 0x310], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push 0x4200
push 0x160
lea eax, [ebp - 0x2f8]
push eax
push 0
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x358], eax
lea eax, [ebp - 0x2ec]
push 4
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x374], 0x107
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x35c], 0x104
call fcn.00519368
mov esi, eax
add esp, 4
test esi, esi
je 0x450776
call fcn.00404730
test eax, eax
je 0x4505c2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
jmp 0x450778
xor esi, esi
test ebx, ebx
jne 0x450780
xor ecx, ecx
jmp 0x45078e
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450785
sub ecx, edx
push ecx
push ebx
mov ecx, esi
call fcn.00405640
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x374]
push eax
mov eax, dword [ebp - 0x304]
push 0
push 0x1007
mov dword [ebp - 0x354], esi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x30c], 0
ja 0x4507ef
cmp dword [ebp - 0x310], 0
ja 0x4507ef
push 0
push 0x54e2a5
lea ecx, [ebp - 0x300]
call fcn.00405640
jmp 0x45090e
call fcn.00404730
test eax, eax
je 0x4505c2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2fc], esi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 3
jge 0x45083a
push 0x104
lea ecx, [ebp - 0x308]
call fcn.004053d0
mov edi, dword [ebp - 0x308]
push 0x104
push edi
push dword [ebp - 0x31c]
push dword [ebp - 0x320]
call dword [sym.imp.SHLWAPI.dll_StrFormatByteSize64A]
push dword [edi - 8]
push edi
call fcn.0052644e
add esp, 8
test eax, eax
js 0x450a8c
cmp eax, dword [edi - 8]
jg 0x450a8c
mov dword [edi - 0xc], eax
mov ecx, 1
mov byte [eax + edi], 0
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4508a0
push 0x104
lea ecx, [ebp - 0x2fc]
call fcn.004053d0
mov esi, dword [ebp - 0x2fc]
push 0x104
push esi
push dword [ebp - 0x30c]
push dword [ebp - 0x310]
call dword [sym.imp.SHLWAPI.dll_StrFormatByteSize64A]
push dword [esi - 8]
push esi
call fcn.0052644e
add esp, 8
test eax, eax
js 0x450a8c
cmp eax, dword [esi - 8]
jg 0x450a8c
push esi
mov dword [esi - 0xc], eax
push edi
mov byte [eax + esi], 0
lea eax, [ebp - 0x300]
push 0x8572
push eax
call fcn.0040e1a0
add esp, 0x10
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45090e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x38
lea eax, [ebp - 0x3ac]
push 0
push eax
call fcn.0051d400
mov eax, dword [ebp - 0x370]
add esp, 0xc
mov esi, dword [ebp - 0x300]
mov dword [ebp - 0x3ac], eax
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x3b0], 1
push eax
mov eax, dword [ebp - 0x304]
push 0
push 0x1006
mov dword [ebp - 0x3a8], 1
push dword [eax + 4]
mov dword [ebp - 0x3a0], 0
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x39c], esi
mov dword [ebp - 0x394], 0
mov dword [ebp - 0x390], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x314]
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x334]
push eax
mov eax, dword [ebp - 0x304]
push 0
push 0x10a4
mov dword [ebp - 0x314], 1
push dword [eax + 4]
mov dword [ebp - 0x334], 0x14
mov dword [ebp - 0x32c], 1
mov dword [ebp - 0x324], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4509f4
sub ecx, edx
inc ebx
add ebx, ecx
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450a05
sub ecx, edx
jne 0x450663
push dword [ebp - 0x318]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x450a3e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x450a57
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x194]
cmp dword [ebp - 0x198], eax
je 0x450a70
lea ecx, [ebp - 0x198]
call fcn.0040e270
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005193a0
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004049a0
int3