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

Disassembly:
mov eax, 0x6126f8
call fcn.0060cc48
sub esp, 0x210
push ebx
push esi
mov esi, ecx
xor ebx, ebx
and dword [ebp - 0x30], ebx
push edi
mov eax, dword [esi + 0x98]
mov edi, dword [esi + 0xa8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0xc]
call fcn.00472f58
test eax, eax
je 0x477bbe
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0xc]
call fcn.00473426
cmp eax, dword [edi + 0xc]
je 0x477bab
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax + 0x10]
jge 0x477bae
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x477bbe
call fcn.00472b97
test eax, eax
jne 0x477bc0
xor ecx, ecx
mov dword [esi + 0xbc], ecx
test ecx, ecx
je 0x477ff4
call fcn.00472b97
test eax, eax
je 0x477ff4
cmp dword [0x6ca878], 5
jne 0x477c08
mov eax, dword [0x6ca8ac]
cmp dword [eax - 0xc], ebx
je 0x477c08
push eax
push str.Update_dlfile_info_by_softid:_ws
push 0x6ca908
call fcn.0048e9c0
add esp, 0xc
mov ecx, esi
call fcn.0047b52e
mov ecx, dword [esi + 0xbc]
lea eax, [ebp - 0x48]
push eax
call fcn.004765ac
and dword [ebp - 4], 0
lea ecx, [ebp - 0x90]
push dword [eax]
call fcn.0040d603
xor eax, eax
lea edx, [ebp - 0x90]
inc eax
push ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], al
call fcn.0040a5a3
pop ecx
push 0
push 1
lea ecx, [ebp - 0x90]
call fcn.004097fa
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
cmp dword [ebp - 0x60], 0
je 0x477c79
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
lea ecx, [esi + 0xdc]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.004060f8
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx + 8]
mov dword [esi + 0x30], eax
mov al, byte [ecx + 0x10]
mov byte [0x6ca8c0], al
movzx eax, al
push eax
push str.printer_driver:_d
push 0x6ca908
call fcn.0048e9c0
mov eax, dword [esi + 0xbc]
add esp, 0xc
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x1c]
xor eax, eax
sar ecx, 2
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x1c], eax
test ecx, ecx
jle 0x477fe0
push eax
push str.MatchConfigItem__file_node__d_
push 0x6ca908
call fcn.0048e9c0
mov ecx, dword [esi + 0xbc]
add esp, 0xc
push dword [ebp - 0x1c]
call fcn.00472cc0
mov edi, eax
test edi, edi
je 0x477fdb
mov ecx, edi
call fcn.00472731
test eax, eax
je 0x477fdb
lea ecx, [edi + 0x48]
push ecx
mov ecx, esi
call fcn.0047a3ee
test eax, eax
je 0x477f95
cmp dword [edi + 0x78], 0
jne 0x477d2f
push dword [ebp - 0x1c]
push str.MatchConfigItem__file_node__d__disable
push 0x6ca908
call fcn.0048e9c0
add esp, 0xc
jmp 0x477f95
call fcn.00404f47
push eax
lea ecx, [ebp - 0x20]
call fcn.004065d8
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0x4c]
sub ecx, 0x10
call fcn.00409008
mov dword [ebp - 0x28], eax
add eax, 0x10
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
lea ecx, [esi + 0xa4]
call fcn.00473a0d
test eax, eax
je 0x477d8b
push dword [ebp - 0x1c]
push str.MatchConfigItem__file_node__d__condition_failed
push 0x6ca908
call fcn.0048e9c0
add esp, 0xc
jmp 0x477f7e
inc dword [ebp - 0x30]
push edi
call fcn.0047b195
xor eax, eax
inc eax
push edi
mov dword [ebp - 0x34], eax
call fcn.0047b391
test eax, eax
jne 0x477dba
push edi
call fcn.0047b047
test eax, eax
jne 0x477db6
push edi
call fcn.0047af89
jmp 0x477dba
and dword [ebp - 0x34], 0
lea eax, [edi + 0x14]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x38], eax
push 3
push dword [eax]
mov dword [ebp - 0x218], ecx
lea ecx, [ebp - 0x218]
call fcn.004066f6
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
push dword [ebp - 0x218]
call fcn.00406173
lea eax, [ebp - 0x214]
mov byte [ebp - 4], 9
cmp dword [ebp - 0x218], eax
je 0x477e0b
push dword [ebp - 0x218]
call fcn.005f0fb3
pop ecx
cmp dword [ebp - 0x34], 0
je 0x477e23
lea eax, [ebp - 0x14]
push eax
call fcn.004706c9
pop ecx
test eax, eax
je 0x477fa7
push 3
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405d36
mov edi, dword [eax]
xor eax, eax
inc eax
push edi
mov byte [ebp - 0x18], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x477e8c
xor eax, eax
xor ecx, ecx
inc eax
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x44]
push eax
push ecx
push ecx
push edi
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x477e8c
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
shrd ecx, edx, 0x14
shr edx, 0x14
call fcn.0060c5f0
xor eax, eax
xor ecx, ecx
inc eax
comisd xmm0, xmmword [0x6a1b48]
movzx eax, al
cmovae eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x4c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
cmp byte [ebp - 0x18], 0
je 0x477f2b
mov edx, 0x400
lea ecx, [ebp - 0x24]
call fcn.004714d5
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], 0
je 0x477fcc
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.0040b060
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x50]
call fcn.0040b545
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.00406123
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.00404ea9
push dword [ebp - 0x58]
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x78]
push eax
lea ecx, [esi + 0xe0]
call fcn.0047ca6f
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push 3
push dword [ebp - 0x14]
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call fcn.00408f48
mov byte [ebp - 4], 0xd
push dword [ebp - 0x114]
mov ecx, dword [ebp - 0x38]
call fcn.00405d0b
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x477f73
push dword [ebp - 0x114]
call fcn.005f0fb3
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x28]
call fcn.00404ea9
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x54]
jl 0x477cc2
jmp 0x477fe0
mov ebx, 0xfc
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x28]
call fcn.00404ea9
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
jmp 0x477fe0
lea ecx, [eax - 0x10]
mov ebx, 0x105
call fcn.00404ea9
jmp 0x477fac
mov ebx, 0xfd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
xor eax, eax
push 0
inc eax
push eax
call fcn.004044ec
jmp 0x477ff9
mov ebx, 0x96
cmp dword [ebp - 0x30], 0
jne 0x478015
push 0x69ea78
push 0x6ca908
call fcn.0048e9c0
pop ecx
pop ecx
mov ebx, 0xc8
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret