Function at 0x46b500
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a6d7
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x5c5c30]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
cmp dword [ebp + 8], 0
setne al
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x46b551
push 0x26a
push 0x550070
call fcn.0045b590
test eax, eax
je 0x46b551
int3
cmp dword [ebp - 0x1c], 0
jne 0x46b55c
call fcn.00431d30
xor edx, edx
jne 0x46b52b
xor eax, eax
cmp dword [ebp + 0xc], 0
setne al
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x46b586
push 0x26b
push 0x5500a8
call fcn.0045b590
test eax, eax
je 0x46b586
int3
cmp dword [ebp - 0x20], 0
jne 0x46b591
call fcn.00431d30
xor edx, edx
jne 0x46b560
push 1
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.00467ae0
test eax, eax
jne 0x46b5bd
push 0x26c
push 0x5500e0
call fcn.0045b590
test eax, eax
je 0x46b5bd
int3
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46b64e
cmp dword [ebp + 0xc], 0
je 0x46b621
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
je 0x46b621
mov ecx, dword [ebp + 0xc]
push ecx
push str.Warning:_could_not_parse_the_path__s._n
push 0
mov ecx, 0x5c97d8
call fcn.0040d7e0
push eax
push 0x275
push 0x550118
lea ecx, [ebp - 0x294]
call fcn.00401100
push eax
call fcn.00401120
add esp, 0x14
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.00431d80
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00469f50
xor eax, eax
jmp 0x46b8b1
cmp dword [ebp - 0x10], 0x104
jb 0x46b6ae
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x46b688
mov edx, dword [ebp + 0xc]
push edx
push str.Warning:_could_not_parse_the_path__s._Path_is_too_long._n
push 0x27f
push 0x5501a4
lea ecx, [ebp - 0x29c]
call fcn.00401100
push eax
call fcn.00417bc0
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x46b6a7
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 3
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0x14
call fcn.0040adb0
xor eax, eax
jmp 0x46b8b1
lea ecx, [ebp - 0x14]
call fcn.0040ac00
mov dword [ebp - 4], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0046b8f0
lea ecx, [ebp - 0x14]
call fcn.0040d7e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x46b892
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.0040d7e0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x46b770
lea ecx, [ebp - 0x14]
call fcn.0040d7e0
push eax
push str.Warning:_could_not_get_volume_information__s._n
push 0
mov ecx, 0x5c97d8
call fcn.0040d7e0
push eax
push 0x295
push 0x550258
lea ecx, [ebp - 0x2a4]
call fcn.00401100
push eax
call fcn.00401120
add esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00469f50
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ad40
mov eax, dword [ebp - 0x2a8]
jmp 0x46b8b1
mov edx, dword [ebp - 0x28]
and edx, 2
jne 0x46b782
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov ecx, dword [ebp - 0x28]
and ecx, 4
jne 0x46b892
lea edx, [ebp - 0x284]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x46b892
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x18], 0
je 0x46b864
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 8]
jbe 0x46b864
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp + 8]
sar ecx, 1
mov dword [ebp - 0x28c], ecx
mov edx, dword [ebp - 0x288]
add edx, dword [ebp - 0x28c]
cmp edx, 0x104
jge 0x46b822
lea eax, [ebp - 0x258]
push eax
mov ecx, 0x104
sub ecx, dword [ebp - 0x28c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00429a40
add esp, 0xc
jmp 0x46b862
cmp dword [ebp + 0x10], 0
je 0x46b841
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 3
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0x14
call fcn.0040adb0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ad40
mov eax, dword [ebp - 0x2ac]
jmp 0x46b8b1
jmp 0x46b892
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00469f50
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ad40
mov eax, dword [ebp - 0x2b0]
jmp 0x46b8b1
mov dword [ebp - 0x2b4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ad40
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004d1610
mov esp, ebp
pop ebp
ret 0xc