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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57edfb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x114c
call fcn.00554a50
mov eax, dword [0x5cca0c]
xor eax, esp
mov dword [esp + 0x1148], eax
push ebx
push esi
push edi
mov eax, dword [0x5cca0c]
xor eax, esp
push eax
lea eax, [esp + 0x1160]
mov dword fs:[0], eax
xor ebx, ebx
push 0xffe
lea eax, [esp + 0x15a]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x38], esi
mov word [esp + 0x160], bx
call fcn.00552500
add esp, 0xc
lea ecx, [esp + 0x154]
push ecx
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x417d31
mov esi, dword [esi + 4]
push 0x596458
push 0x596578
mov ebx, 0x30
call fcn.00412f90
add esp, 8
jmp 0x417f9c
cmp word [esp + 0x154], bx
lea esi, [esp + 0x154]
je 0x417f9c
jmp 0x417d54
mov esi, dword [esp + 0x28]
push 0xfe
lea edx, [esp + 0x5a]
push ebx
push edx
mov word [esp + 0x60], bx
call fcn.00552500
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417d71
sub eax, edx
sar eax, 1
cmp eax, 0x80
jbe 0x417d8e
mov eax, 0x7f
jmp 0x417da2
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417d93
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x58]
push esi
push ecx
call fcn.00552de0
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
jmp 0x417dc0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417dc0
sub eax, edx
sar eax, 1
lea edx, [esi + eax*2 + 2]
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x417f8d
mov edi, dword [0x5c5024]
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x116c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [edi - 0xc], 1
lea ebx, [edi - 0xc]
mov esi, eax
jg 0x417e17
cmp esi, dword [edi - 4]
jle 0x417e52
add edi, 0xfffffff4
cmp edi, dword [0x5c5020]
je 0x417e40
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417e36
push ebx
call fcn.0055221b
add esp, 4
mov edx, dword [0x5c5024]
mov dword [esp + 0x14], edx
push esi
lea ecx, [esp + 0x18]
call fcn.00404940
test eax, eax
mov edi, dword [esp + 0x14]
je 0x417e77
lea ebx, [esi + esi]
push ebx
lea eax, [esp + 0x58]
push eax
lea ecx, [ebx + 2]
push ecx
push edi
call fcn.00552323
push eax
call fcn.00401220
mov dword [edi - 8], esi
add esp, 0x14
mov word [ebx + edi], 0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push 0x5c
push edi
call fcn.005522f3
add esp, 8
test eax, eax
jne 0x417ea5
or eax, 0xffffffff
jmp 0x417ea9
sub eax, edi
sar eax, 1
mov ecx, dword [edi - 8]
lea edx, [ecx - 1]
cmp eax, edx
jne 0x417ec6
add ecx, 0xffffffff
push 1
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407380
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esi + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
sbb eax, dword [esp + 0x38]
add esi, 0x34
cmp ebx, dword [esi + 8]
mov dword [esp + 0x20], eax
jbe 0x417ef2
call fcn.005532de
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x30], eax
jbe 0x417f03
call fcn.005532de
cmp esi, esi
je 0x417f0c
call fcn.005532de
cmp ebx, dword [esp + 0x30]
je 0x417f54
cmp ebx, dword [esi + 8]
jb 0x417f1c
call fcn.005532de
mov eax, dword [esp + 0x20]
cmp eax, dword [ebx + 0xc]
ja 0x417f3f
jb 0x417f30
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [ebx + 8]
ja 0x417f3f
cmp ebx, dword [esi + 8]
jb 0x417f3a
call fcn.005532de
add ebx, 0x10
jmp 0x417ef2
lea edx, [esp + 0x14]
push edx
push ebx
push esi
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call fcn.00417010
jmp 0x417f60
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004175c0
lea edx, [edi - 0xc]
cmp edx, dword [0x5c5020]
mov dword [esp + 0x1168], 0xffffffff
je 0x417f8d
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417f8d
push esi
call fcn.0055221b
add esp, 4
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp word [eax], bx
jne 0x417d50
mov ecx, dword [esp + 0x1160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1148]
xor ecx, esp
call fcn.00552d63
mov esp, ebp
pop ebp
ret