Function at 0x4118e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f008c
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x784]
lea edx, [ebp - 0x340]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], 0
call sym.R2ClientInstall.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov edx, eax
mov dword [ebp - 0x228], 0
mov ecx, edx
mov dword [ebp - 0x224], 7
xor eax, eax
mov word [ebp - 0x238], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411953
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x238]
call fcn.0040e140
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 2
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 0x34c], 0
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x18], xmm0
call fcn.004c5d00
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 3
cmovae eax, dword [ebp - 0x238]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004cd84b
add esp, 0x18
lea eax, [ebp - 0x348]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [ebp - 0x344]
mov ecx, dword [ebp - 0x348]
call fcn.004c4740
movsd xmm1, qword [0x5200d0]
lea eax, [ebp - 0x2bc]
comisd xmm1, xmm0
push 0
jbe 0x411a55
push str.id_storage_space_not_enough
push eax
call sym.R2ClientInstall.exe_public:_static_class_DuiLib::CResourceManager____cdecl_DuiLib::CResourceManager::GetInstance_void_
mov ecx, eax
call sym.R2ClientInstall.exe_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CResourceManager::GetText_wchar_t_const___wchar_t_const__
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call sym.R2ClientInstall.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040f7d0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2bc]
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
push 0x10
lea eax, [ebp - 0x34c]
push eax
push str.0xFFDE3F05
jmp 0x411b50
push str.id_storage_required_available
push eax
call sym.R2ClientInstall.exe_public:_static_class_DuiLib::CResourceManager____cdecl_DuiLib::CResourceManager::GetInstance_void_
mov ecx, eax
call sym.R2ClientInstall.exe_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CResourceManager::GetText_wchar_t_const___wchar_t_const__
mov esi, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x344]
mov ecx, dword [ebp - 0x348]
call fcn.004c4740
movsd xmm1, qword [0x5200c0]
sub esp, 8
mulsd xmm0, xmm1
mov ecx, esi
mulsd xmm0, xmm1
mulsd xmm0, xmm1
movsd qword [esp], xmm0
call sym.R2ClientInstall.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040f7d0
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2bc]
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp dword [edi + 0x7bc], 8
lea esi, [edi + 0x7a8]
jb 0x411ad5
mov esi, dword [edi + 0x7a8]
cmp dword [edi + 0x7b8], 6
jne 0x411b42
mov ecx, str.France
mov edx, 6
sub esi, ecx
nop word [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x411b42
add ecx, 2
sub edx, 1
jne 0x411af0
mov edx, dword [ebp - 0x344]
mov ecx, dword [ebp - 0x348]
call fcn.004c4740
movsd xmm1, qword [0x5200c0]
lea eax, [ebp - 0x220]
mulsd xmm0, xmm1
sub esp, 8
mulsd xmm0, xmm1
mulsd xmm0, xmm1
movsd qword [esp], xmm0
push str.20Mb_espace_de_stockage_requis__4.2fGB_disponible.
push eax
call fcn.0040f7d0
add esp, 0x10
push 0x10
lea eax, [ebp - 0x34c]
push eax
push str.0xFF9b9b9b
call fcn.004cd81f
mov ecx, dword [edi + 0x788]
add esp, 0xc
push eax
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::CLabelUI::SetTextColor_unsigned_long_int_
mov ecx, dword [edi + 0x788]
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x411bb2
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411ba8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411bcd
push edx
push ecx
call fcn.004c3d01
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
call fcn.004cac9c
int3