Function at 0x477be0
Capabilities:
Get disk size

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577847
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x290
mov eax, dword [0x8f9064]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::Path::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x108]
call dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::Path::constructor_class_Poco::Path_const__]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 3
mov esi, dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::File::constructor_class_Poco::Path_const__]
lea ecx, [ebp - 0x288]
push eax
call esi
mov ecx, 1
mov byte [ebp - 4], 4
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x298], ecx
mov ecx, eax
call dword [sym.imp.PocoFoundation.dll_public:_bool___thiscall_Poco::File::exists_void_const]
test al, al
je 0x477cf2
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x254]
call esi
mov ecx, 3
mov dword [ebp - 4], 5
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x298], ecx
mov ecx, eax
call dword [sym.imp.PocoFoundation.dll_public:_bool___thiscall_Poco::File::isFile_void_const]
mov byte [ebp - 0x289], 1
test al, al
jne 0x477cf9
mov byte [ebp - 0x289], 0
mov eax, dword [ebp - 0x294]
mov esi, dword [sym.imp.PocoFoundation.dll_public_virtual:_void___thiscall_Poco::File::destructor_void_]
test al, 2
je 0x477d20
and eax, 0xfffffffd
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x294], eax
call esi
mov eax, dword [ebp - 0x294]
mov dword [ebp - 4], 3
test al, 1
je 0x477d33
lea ecx, [ebp - 0x288]
call esi
cmp byte [ebp - 0x289], 0
mov esi, dword [sym.imp.PocoFoundation.dll_public:_class_Poco::Path___thiscall_Poco::Path::parent_void_]
je 0x477d6e
lea eax, [ebp - 0x1b0]
push eax
lea ecx, [ebp - 0x220]
call esi
push eax
lea ecx, [ebp - 0x108]
call dword [sym.imp.PocoFoundation.dll_public:_class_Poco::Path____thiscall_Poco::Path::operator_class_Poco::Path__]
mov edi, dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::Path::destructor_void_]
lea ecx, [ebp - 0x1b0]
call edi
jmp 0x477d74
mov edi, dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::Path::destructor_void_]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x13c]
call dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::File::constructor_class_Poco::Path_const__]
mov byte [ebp - 4], 6
nop dword [eax + eax]
lea ecx, [ebp - 0x13c]
call dword [sym.imp.PocoFoundation.dll_public:_bool___thiscall_Poco::File::exists_void_const]
test al, al
jne 0x477fa4
lea eax, [ebp - 0x1b0]
push eax
lea ecx, [ebp - 0x108]
call esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
call dword [sym.imp.PocoFoundation.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_Poco::Path::toString_void_]
mov esi, eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x108]
call dword [sym.imp.PocoFoundation.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_Poco::Path::toString_void_]
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x477de4
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x477def
mov eax, dword [eax]
push edx
push esi
push ecx
push eax
call fcn.00437f90
mov edx, dword [ebp - 0x54]
add esp, 0x10
mov byte [ebp - 0x289], al
cmp edx, 0x10
jb 0x477e31
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x477e27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x477e6d
push edx
push ecx
call fcn.0056d673
add esp, 8
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp edx, 0x10
jb 0x477e7d
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x477e73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x477e73
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0056d673
add esp, 8
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
mov byte [ebp - 4], 6
call edi
cmp byte [ebp - 0x289], 0
lea eax, [ebp - 0x1b0]
lea ecx, [ebp - 0x108]
push eax
je 0x477f6f
call dword [sym.imp.PocoFoundation.dll_public:_class_Poco::Path___thiscall_Poco::Path::parent_void_]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call dword [sym.imp.PocoFoundation.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_Poco::Path::toString_void_]
mov ecx, dword [ebp - 0x290]
sub esp, 8
mov edx, esp
mov dword [edx], str.No_more_parent_directories_for_path___reached____and_it_still_isnt_valid__aborting.
mov dword [edx + 4], 0x58
mov edx, eax
call fcn.0047d080
add esp, 8
lea ecx, [ebp - 0x80]
call fcn.00416f30
lea ecx, [ebp - 0x1b0]
call edi
lea ecx, [ebp - 0x13c]
call dword [sym.imp.PocoFoundation.dll_public_virtual:_void___thiscall_Poco::File::destructor_void_]
lea ecx, [ebp - 0x108]
call edi
lea ecx, [ebp - 0x220]
call edi
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x477f4d
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x477f43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47800c
push edx
push ecx
call fcn.0056d673
add esp, 8
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [sym.imp.PocoFoundation.dll_public:_class_Poco::Path___thiscall_Poco::Path::parent_void_]
call esi
push eax
lea ecx, [ebp - 0x108]
call dword [sym.imp.PocoFoundation.dll_public:_class_Poco::Path____thiscall_Poco::Path::operator_class_Poco::Path__]
lea ecx, [ebp - 0x1b0]
call edi
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x13c]
call dword [sym.imp.PocoFoundation.dll_public:_class_Poco::File____thiscall_Poco::File::operator_class_Poco::Path_const__]
jmp 0x477d90
mov ecx, dword [ebp - 0xe0]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x4781e2
cmp dword [ebp - 0xdc], 0x10
lea eax, [ebp - 0xf0]
push 1
cmovae eax, dword [ebp - 0xf0]
push 0x898b70
push ecx
push eax
push ecx
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x68]
call fcn.004674b0
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x47801c
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x478012
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x478012
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0056d673
add esp, 8
movups xmm0, xmmword [ebp - 0x68]
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x68], 0
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [ebp - 0x58]
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
call fcn.00416f30
lea ecx, [ebp - 0x13c]
call dword [sym.imp.PocoFoundation.dll_public_virtual:_void___thiscall_Poco::File::destructor_void_]
lea ecx, [ebp - 0x108]
call edi
lea ecx, [ebp - 0x220]
call edi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x50]
movq qword [ebp - 0x28], xmm0
lea ecx, [ebp - 0x98]
movups xmmword [ebp - 0x38], xmm0
call fcn.00485ee0
cmp dword [ebp - 0x84], 8
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x98]
cmovae eax, dword [ebp - 0x98]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x478108
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x98]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x290], eax
call fcn.0045e370
mov esi, dword [ebp - 0x3c]
cmp esi, 0x10
jb 0x4780fb
mov ecx, dword [ebp - 0x50]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x4780f1
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4781dc
push esi
push ecx
call fcn.0056d673
add esp, 8
mov edx, dword [ebp - 0x290]
mov eax, edi
jmp 0x477f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x290]
lea edx, [ebp - 0x298]
sub esp, 8
mov dword [ebp - 0x298], eax
mov eax, esp
mov dword [eax], str.Could_not_check_free_space_on_path___last_error_.
mov dword [eax + 4], 0x35
call fcn.0047d230
add esp, 8
lea ecx, [ebp - 0x98]
call fcn.0045e370
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x477f4d
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x477f43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4781dc
jmp 0x477f43
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.004161c0
int3