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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5261c0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x590cc0]
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 0x6ed
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
mov dword [ebp - 0x3c], eax
call fcn.0041a9b0
lea ecx, [ebp - 0x2c]
push 0x1d
push ecx
call fcn.0041d2b0
add esp, 0x1c
mov eax, dword [ebp - 0x2c]
mov edi, 8
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], edi
jae 0x421e41
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x421e6c
cmp esi, 0xffffffff
jne 0x421ecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x421e80
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
push ebx
push str.Failed_CreateFile:_0x_08x.
push str.kupdate::KWpsUpdateImpl::_LoadActions
push 0x6f5
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.0041a9b0
add esp, 0x18
test esi, esi
je 0x421eb1
cmp esi, 0xffffffff
je 0x421eb1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x18], edi
jb 0x422053
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
jmp 0x422053
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x421f31
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x421eef
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
push ebx
push str.Failed_GetFileSize:_0x_08x.
push str.kupdate::KWpsUpdateImpl::_LoadActions
push 0x6fa
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.0041a9b0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x18], edi
jb 0x422053
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9008
add esp, 4
jmp 0x422053
push ebx
call fcn.004b7ad5
add esp, 4
push 0
lea ecx, [ebp - 0x38]
push ecx
mov edi, eax
push ebx
push edi
push esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x421fa4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x421f6d
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
push ebx
push str.Failed_ReadFile:_0x_08x.
push str.kupdate::KWpsUpdateImpl::_LoadActions
push 0x700
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.0041a9b0
push edi
call fcn.004b9ded
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x18], 8
jmp 0x421eb4
lea eax, [ebx + 1]
push eax
call fcn.004b7ad5
mov edi, eax
add esp, 4
test edi, edi
je 0x421fc7
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.004ba010
add esp, 0xc
jmp 0x421fc9
xor edi, edi
mov ecx, dword [ebp - 0x30]
push 0
push 0
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
push ecx
mov dword [ebp - 0x34], 0
call fcn.004660a0
mov edx, dword [ebp - 0x30]
push edx
mov bl, al
call fcn.004b9ded
add esp, 0x1c
test bl, bl
jne 0x42202f
push str.Failed_decrypt_response_xml.
push str.kupdate::KWpsUpdateImpl::_LoadActions
push 0x70b
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.0041a9b0
push edi
call fcn.004b9ded
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.0051c7a0
mov eax, 0x80004005
jmp 0x422055
mov eax, dword [ebp - 0x3c]
push eax
push edi
call fcn.00464e90
push edi
mov ebx, eax
call fcn.004b9ded
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.0051c7a0
mov eax, ebx
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.004b9ff3
mov esp, ebp
pop ebp
ret 4