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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502c65
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x567e00]
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 0xb8e
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
mov dword [ebp - 0x3c], eax
call fcn.00412230
lea eax, [ebp - 0x28]
push 0x21
push eax
call fcn.00417040
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 0x434ff0
cmp esi, 0xffffffff
je 0x434ff0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x434ef3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x434ee4
movzx edi, di
or edi, 0x80070000
mov eax, 0xb9b
mov ecx, str.Failed_GetFileSize:_0x_08x.
jmp 0x43500f
push ebx
call fcn.004c6f7d
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 0x434f5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x434f2e
movzx edi, di
or edi, 0x80070000
push edi
push str.Failed_ReadFile:_0x_08x.
push str.kupdate::KWpsUpdateImpl::_LoadActions
push 0xba1
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.00412230
push dword [ebp - 0x2c]
call fcn.004c6f86
add esp, 0x1c
jmp 0x435026
lea eax, [ebx + 1]
push eax
call fcn.004c6f7d
mov edi, eax
mov dword [ebp - 0x30], eax
add esp, 4
test edi, edi
je 0x434f80
lea eax, [ebx + 1]
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x434f85
xor edi, edi
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push ebx
push edi
push dword [ebp - 0x2c]
push 0x518bd8
call fcn.004ecd80
push dword [ebp - 0x2c]
mov bl, al
call fcn.004c6f86
add esp, 0x18
test bl, bl
jne 0x434fd8
push str.Failed_decrypt_response_xml.
push str.kupdate::KWpsUpdateImpl::_LoadActions
push 0xbac
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.00412230
push edi
call fcn.004c6f86
mov edi, 0x80004005
jmp 0x435023
push dword [ebp - 0x3c]
push edi
call fcn.0047c910
push dword [ebp - 0x30]
mov edi, eax
call fcn.004c6f86
add esp, 0xc
jmp 0x43502f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x435005
movzx edi, di
or edi, 0x80070000
mov eax, 0xb96
mov ecx, str.Failed_CreateFile:_0x_08x.
push edi
push ecx
push str.kupdate::KWpsUpdateImpl::_LoadActions
push eax
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.00412230
add esp, 0x18
test esi, esi
je 0x435036
cmp esi, 0xffffffff
je 0x435036
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x435072
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435068
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x435068
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
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.004c6f8b
mov esp, ebp
pop ebp
ret 4