Function at 0x434150
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfff0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push str.Load_actions.
push str.kupdate::KWpsUpdateImpl::_LoadActions
push 0xb62
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
mov dword [ebp - 0x3c], eax
call fcn.00412750
lea eax, [ebp - 0x28]
push 0x20
push eax
call fcn.00416f00
add esp, 0x1c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x43431f
cmp esi, 0xffffffff
je 0x43431f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x434223
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x434214
movzx edi, di
or edi, 0x80070000
mov eax, 0xb6f
mov ecx, str.Failed_GetFileSize:_0x_08x.
jmp 0x43433e
push ebx
call fcn.004bee3b
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push 0
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43428a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x43425e
movzx edi, di
or edi, 0x80070000
push edi
push str.Failed_ReadFile:_0x_08x.
push str.kupdate::KWpsUpdateImpl::_LoadActions
push 0xb75
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.00412750
push dword [ebp - 0x2c]
call fcn.004bee44
add esp, 0x1c
jmp 0x434355
lea eax, [ebx + 1]
push eax
call fcn.004bee3b
mov edi, eax
mov dword [ebp - 0x30], eax
add esp, 4
test edi, edi
je 0x4342b0
lea eax, [ebx + 1]
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x4342b5
xor edi, edi
mov dword [ebp - 0x30], edi
push 0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push edi
push ebx
push dword [ebp - 0x2c]
call fcn.00477740
push dword [ebp - 0x2c]
mov bl, al
call fcn.004bee44
add esp, 0x1c
test bl, bl
jne 0x434307
push str.Failed_decrypt_response_xml.
push str.kupdate::KWpsUpdateImpl::_LoadActions
push 0xb80
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.00412750
push edi
call fcn.004bee44
mov edi, 0x80004005
jmp 0x434352
push dword [ebp - 0x3c]
push edi
call fcn.0047a430
push dword [ebp - 0x30]
mov edi, eax
call fcn.004bee44
add esp, 0xc
jmp 0x434355
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x434334
movzx edi, di
or edi, 0x80070000
mov eax, 0xb6a
mov ecx, str.Failed_CreateFile:_0x_08x.
push edi
push ecx
push str.kupdate::KWpsUpdateImpl::_LoadActions
push eax
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.00412750
add esp, 0x18
test esi, esi
je 0x434365
cmp esi, 0xffffffff
je 0x434365
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4343a1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x434397
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x434397
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
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret 4