Function at 0x401fa0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x40e301
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x412200]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x3c], ebx
push 0xc
mov edi, 0xf
push str.GetCachePath
lea ecx, [esp + 0x28]
mov dword [esp + 0x144], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00401740
push 0xa
push str.encode.txt
lea ecx, [esp + 0x9c]
mov dword [esp + 0x150], ebx
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
call fcn.00401740
push str.IN
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x9c]
push ebx
push ecx
mov byte [esp + 0x158], 1
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
mov eax, dword [esp + 0xbc]
mov ebp, 0x10
add esp, 0x10
cmp eax, ebp
jb 0x402065
mov edx, dword [esp + 0x98]
push edx
call fcn.00405f98
add esp, 4
cmp dword [esp + 0x38], ebp
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jb 0x40208d
mov eax, dword [esp + 0x24]
push eax
call fcn.00405f98
add esp, 4
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
mov dword [esp + 0x148], 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x14c], 3
call fcn.00404710
add esp, 4
test al, al
jne 0x40214a
mov esi, dword [esp + 0x150]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xd4]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401650
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40211e
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push ecx
push eax
call fcn.00401bf0
mov edx, dword [esp + 0x24]
push edx
call fcn.00405f98
add esp, 0x14
cmp dword [esp + 0xe4], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
jb 0x402143
mov eax, dword [esp + 0xd0]
push eax
call fcn.00405f98
add esp, 4
mov eax, esi
jmp 0x402737
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 0x18]
mov byte [esp + 0x148], 4
je 0x4021ce
push 0x40f334
lea ecx, [esp + 0x48]
push esi
push ecx
call fcn.00401b40
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xf4]
mov byte [esp + 0x154], 5
call fcn.00401440
cmp dword [esp + 0x5c], ebp
mov byte [esp + 0x148], 4
jb 0x4021b7
mov edx, dword [esp + 0x48]
push edx
call fcn.00405f98
add esp, 4
mov eax, dword [esp + 0x18]
add esi, 0x1c
cmp esi, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jne 0x402171
push 0xc
push str.GetCachePath
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00401740
push 0xa
push str.encode.txt
lea ecx, [esp + 0x9c]
mov byte [esp + 0x150], 6
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
call fcn.00401740
cmp dword [esp + 0x100], ebp
mov eax, dword [esp + 0xec]
mov byte [esp + 0x148], 7
jae 0x402239
lea eax, [esp + 0xec]
mov esi, dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push eax
push str.strDiskContent:_s
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xa0]
push ebx
push ecx
call esi
mov eax, dword [esp + 0xc0]
add esp, 0x14
cmp eax, ebp
jb 0x402273
mov edx, dword [esp + 0x98]
push edx
call fcn.00405f98
add esp, 4
cmp dword [esp + 0x38], ebp
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
mov byte [esp + 0x148], 4
jb 0x4022a3
mov eax, dword [esp + 0x24]
push eax
call fcn.00405f98
add esp, 4
lea ecx, [esp + 0x120]
push 0x1b
push ecx
call fcn.00403530
lea eax, [esp + 0x128]
add esp, 8
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4022d4
sub eax, edx
push eax
lea edx, [esp + 0x124]
push edx
lea ecx, [esp + 0xb8]
call fcn.00401740
push 0xc
push str.GetCachePath
lea ecx, [esp + 0x28]
mov byte [esp + 0x150], 8
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00401740
push 0xa
push str.encode.txt
lea ecx, [esp + 0x9c]
mov byte [esp + 0x150], 9
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
call fcn.00401740
cmp dword [esp + 0xc8], ebp
mov eax, dword [esp + 0xb4]
mov byte [esp + 0x148], 0xa
jae 0x402365
lea eax, [esp + 0xb4]
push eax
push str.strRemoveableDriverNames:_s
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xa0]
push ebx
push ecx
call esi
mov eax, dword [esp + 0xc0]
add esp, 0x14
cmp eax, ebp
jb 0x402399
mov edx, dword [esp + 0x98]
push edx
call fcn.00405f98
add esp, 4
cmp dword [esp + 0x38], ebp
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jb 0x4023c1
mov eax, dword [esp + 0x24]
push eax
call fcn.00405f98
add esp, 4
xor ebp, ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
mov byte [esp + 0x148], 0xb
je 0x40254b
lea esi, [eax + 4]
cmp dword [esi + 0x10], ebx
jbe 0x4024a4
push 1
push ebx
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esi - 4]
call fcn.00401870
cmp dword [esp + 0xac], 0x10
mov eax, dword [esp + 0x98]
jae 0x402429
lea eax, [esp + 0x98]
mov edx, dword [esp + 0xa8]
push edx
push ebx
push eax
lea ecx, [esp + 0xbc]
call fcn.00401180
cmp eax, 0xffffffff
mov eax, dword [esp + 0xac]
je 0x40247a
cmp eax, 0x10
jb 0x402460
mov eax, dword [esp + 0x98]
push eax
call fcn.00405f98
add esp, 4
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jmp 0x4024fd
cmp eax, 0x10
jb 0x40248f
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00405f98
add esp, 4
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
cmp dword [esi + 0x14], 0x10
jb 0x4024ae
mov eax, dword [esi]
jmp 0x4024b0
mov eax, esi
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
cmp eax, ebx
je 0x4024fd
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x40], ecx
ja 0x4024fd
mov eax, dword [esp + 0x60]
jb 0x4024e4
cmp ebp, eax
jae 0x4024fd
push 0xffffffffffffffff
mov ebp, eax
push ebx
lea eax, [esi - 4]
mov dword [esp + 0x48], ecx
push eax
lea ecx, [esp + 0x110]
call fcn.00401650
mov eax, dword [esp + 0x18]
add esi, 0x1c
lea ecx, [esi - 4]
cmp ecx, eax
jne 0x4023f5
or ebp, dword [esp + 0x40]
je 0x40254b
mov eax, dword [esp + 0x11c]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x108]
jae 0x402533
lea eax, [esp + 0x108]
push eax
lea edx, [esp + 0xd0]
push str._sKwDownload_temp
push edx
call fcn.00404ca0
add esp, 0xc
jmp 0x402550
mov esi, 0x10
push 0xc
push str.GetCachePath
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00401740
push 0xa
push str.encode.txt
lea ecx, [esp + 0x70]
mov byte [esp + 0x150], 0xc
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.00401740
cmp dword [esp + 0xe4], esi
mov eax, dword [esp + 0xd0]
mov byte [esp + 0x148], 0xd
jae 0x4025b5
lea eax, [esp + 0xd0]
push eax
push str.strPath:_s
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x74]
push ebx
push ecx
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
mov eax, dword [esp + 0x94]
add esp, 0x14
cmp eax, esi
jb 0x4025e7
mov edx, dword [esp + 0x6c]
push edx
call fcn.00405f98
add esp, 4
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov byte [esp + 0x148], 0xb
jb 0x402611
mov eax, dword [esp + 0x48]
push eax
call fcn.00405f98
add esp, 4
mov ebp, dword [esp + 0x150]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xd4]
push ecx
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00401650
mov eax, dword [esp + 0x11c]
mov esi, 0x10
cmp eax, esi
jb 0x402653
mov edx, dword [esp + 0x108]
push edx
call fcn.00405f98
add esp, 4
cmp dword [esp + 0xc8], esi
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
jb 0x402681
mov eax, dword [esp + 0xb4]
push eax
call fcn.00405f98
add esp, 4
cmp dword [esp + 0x100], esi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
jb 0x4026af
mov ecx, dword [esp + 0xec]
push ecx
call fcn.00405f98
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
je 0x402710
mov edi, dword [esp + 0x18]
cmp eax, edi
je 0x402702
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x4026e8
mov edx, dword [esi - 0x14]
push edx
call fcn.00405f98
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x4026d7
mov eax, dword [esp + 0x14]
push eax
call fcn.00405f98
add esp, 4
mov esi, 0x10
cmp dword [esp + 0xe4], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
jb 0x402735
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00405f98
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x130]
pop ebx
call fcn.00405b2e
add esp, 0x13c
ret