Function at 0x4051b0
Capabilities:
Get disk information
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac07b
mov eax, dword fs:[0]
push eax
sub esp, 0x528
mov eax, dword [0x620024]
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 ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xb
push dword [edi + 0xc8]
mov dword [ebp - 0x4e8], edi
call ebx
push 0
push 0
push 0x1009
mov dword [ebp - 4], 0
push dword [edi + 0xc8]
call ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
je 0x4055b1
mov dword [ebp - 0x1c], 0x3a0000
mov dword [ebp - 0x18], 0x5c
call fcn.00449b3d
mov ecx, eax
test ecx, ecx
je 0x4055df
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4dc], esi
push 0x34
lea eax, [ebp - 0x534]
push 0
push eax
call fcn.00588550
mov dword [ebp - 0x500], 0x3a0020
mov dword [ebp - 0x4fc], 0x5c
mov byte [ebp - 0x4f8], 0
mov dword [ebp - 0x4f4], 0
mov dword [ebp - 0x4f0], 0x200
mov byte [ebp - 0x4ec], 0
push 0x208
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00588550
add esp, 0x18
mov ebx, 0x41
cmp bx, 0x5a
ja 0x405595
cmp dword [edi + 0x158], 1
jne 0x4052d0
cmp bx, 0x43
je 0x405581
lea eax, [ebp - 0x1c]
mov word [ebp - 0x1c], bx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x405581
cmp eax, 1
je 0x405581
cmp eax, 5
je 0x405581
cmp eax, 4
je 0x405581
push 0x4601
push 0x2b4
lea eax, [ebp - 0x4d8]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [edi + 0x138]
lea eax, [ebp - 0x1c]
lea ecx, [edi + 0x130]
push eax
push esi
call fcn.0044c937
lea eax, [ebp - 0x4cc]
mov dword [ebp - 0x534], 7
mov dword [ebp - 0x520], eax
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x518], eax
lea eax, [ebp - 0x534]
push eax
push 0
push 0x104d
push dword [edi + 0xc8]
mov dword [ebp - 0x514], esi
mov dword [ebp - 0x530], esi
mov dword [ebp - 0x52c], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x104
mov dword [ebp - 0x530], eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4053d9
lea eax, [ebp - 0x224]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4053c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x224]
push eax
jmp 0x4053e0
push 0
push 0x5f3770
lea ecx, [ebp - 0x4dc]
call fcn.00402d30
mov esi, dword [ebp - 0x4dc]
mov dword [ebp - 0x534], 1
mov dword [ebp - 0x52c], 1
mov edx, dword [esi - 0xc]
test edx, edx
js 0x4055e9
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x405433
push edx
lea ecx, [ebp - 0x4dc]
call fcn.00403000
mov esi, dword [ebp - 0x4dc]
lea eax, [ebp - 0x534]
mov dword [ebp - 0x520], esi
push eax
push 0
push 0x104c
push dword [edi + 0xc8]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi - 8]
push esi
call fcn.0058dfb4
add esp, 8
test eax, eax
js 0x4055e9
cmp eax, dword [esi - 8]
jg 0x4055e9
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
xorps xmm0, xmm0
lea eax, [ebp - 0x4e4]
movlpd qword [ebp - 0x4e4], xmm0
push eax
lea edx, [ecx + 4]
lea ecx, [ebp - 0x1c]
call fcn.0041bd60
mov ecx, dword [ebp - 0x4e4]
add esp, 4
mov eax, dword [ebp - 0x4e0]
add ecx, 0x400
adc eax, 0
shrd ecx, eax, 0xa
shr eax, 0xa
mov dword [ebp - 0x4e4], ecx
mov dword [ebp - 0x4e0], eax
test eax, eax
jne 0x4054de
cmp ecx, 0x186a0
ja 0x4054de
test eax, eax
jne 0x4054d5
test ecx, ecx
je 0x405501
push eax
push ecx
push str._I64u_KB
jmp 0x4054ec
shrd ecx, eax, 0xa
shr eax, 0xa
push eax
push ecx
push str._I64u_MB
lea eax, [ebp - 0x4dc]
push eax
call fcn.00402b00
mov esi, dword [ebp - 0x4dc]
add esp, 0x10
mov dword [ebp - 0x534], 1
mov dword [ebp - 0x52c], 2
mov edx, dword [esi - 0xc]
test edx, edx
js 0x4055f3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x405543
push edx
lea ecx, [ebp - 0x4dc]
call fcn.00403000
mov esi, dword [ebp - 0x4dc]
lea eax, [ebp - 0x534]
mov dword [ebp - 0x520], esi
push eax
push 0
push 0x104c
push dword [edi + 0xc8]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi - 8]
push esi
call fcn.0058dfb4
add esp, 8
test eax, eax
js 0x4055e9
cmp eax, dword [esi - 8]
jg 0x4055e9
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
inc ebx
jmp 0x4052b3
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4055b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 1
push 0xb
push dword [edi + 0xc8]
call dword [sym.imp.USER32.dll_SendMessageW]
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.00586281
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403300
push 0x80070057
call fcn.00403300
push 0x80070057
call fcn.00403300
int3