Function at 0x434d20
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea esi, [eax + 0x30]
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov eax, esi
cmp dword [esi + 0x14], 8
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], ebx
jb 0x434d4e
mov eax, dword [esi]
push eax
call fcn.004168a0
add esp, 4
test al, al
je 0x434d9d
cmp dword [esi + 0x14], 8
jb 0x434d63
mov esi, dword [esi]
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00478110
mov ecx, dword [ebp - 0x24]
add esp, 8
add ecx, 0x4c
mov ebx, 1
cmp dword [ecx + 0x14], 8
jb 0x434d83
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x434d8b
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
mov byte [ebp - 0x1d], bl
test eax, eax
je 0x434da1
mov byte [ebp - 0x1d], 0
test bl, 1
je 0x434de2
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x434de2
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x434dd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x434dd8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
cmp byte [ebp - 0x1d], 0
je 0x434dfc
push str.download_already_finish
push str.kupdate::KWpsUpdateImpl::_checkDownloadNeedSpace
push 0x111e
jmp 0x434eec
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x48]
fild dword [ebx + 0x48]
test eax, eax
jns 0x434e0f
fadd qword [0x4fac70]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd st(0), st(0)
fld qword [0x4fac38]
fnstcw word [ebp - 0x1e]
movzx eax, word [ebp - 0x1e]
or eax, 0xc00
mov dword [ebp - 0x24], eax
fmul st(1), st(0)
fmulp st(1)
fadd qword [0x4fac58]
fldcw word [ebp - 0x24]
fistp qword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
push eax
push str.download_needspace__d
fldcw word [ebp - 0x1e]
push str.kupdate::KWpsUpdateImpl::_checkDownloadNeedSpace
push 0x1125
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 7
mov dword [ebp - 0x24], eax
call fcn.00412750
add esp, 0x18
cmp dword [edi + 0x14], 8
jb 0x434e6c
mov edi, dword [edi]
lea eax, [ebp - 0x38]
xor esi, esi
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x434e8f
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
shrd esi, eax, 0x14
cmp esi, dword [ebp - 0x24]
jae 0x434edd
push 0
push 0xc
push str.HKCUSoftwareKingsoftOffice6.0CommonupdateinfoDownloadCode
call fcn.0044bd90
push 0xc
push ebx
call fcn.00425b70
push str.not_enough_disk_free_space__download_fail
push str.kupdate::KWpsUpdateImpl::_checkDownloadNeedSpace
push 0x112f
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 0
call fcn.00412750
add esp, 0x28
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret 8
push str.enough_disk_free_space
push str.kupdate::KWpsUpdateImpl::_checkDownloadNeedSpace
push 0x1134
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 7
call fcn.00412750
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.004bee49
mov esp, ebp
pop ebp
ret 8