Function at 0x4343d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0040
mov eax, dword fs:[0]
push eax
sub esp, 0x58
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 esi, dword [ebp + 8]
push str.Save_actions.
push str.kupdate::KWpsUpdateImpl::_SaveActions
push 0xb8e
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
call fcn.00412750
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push esi
call fcn.0047a5a0
mov edi, eax
add esp, 0x1c
test edi, edi
jns 0x4344e6
push 0xd
xor eax, eax
mov dword [ebp - 0x48], 0
push str.save_response
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.004033b0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
push 5
call fcn.0042c190
mov ecx, eax
call fcn.004131f0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4344c2
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4344b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4344b8
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
push edi
push str.Failed_save_response:_0x_08x.
push str.kupdate::KWpsUpdateImpl::_SaveActions
push 0xb93
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 0
call fcn.00412750
add esp, 0x18
jmp 0x434677
mov eax, dword [ebp - 0x18]
add eax, 0x10
push eax
call fcn.004bee3b
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x5c]
push 0
push 0
mov ebx, eax
mov dword [ebp - 0x5c], 0
push ecx
push ebx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00477440
lea eax, [ebp - 0x40]
push 0x20
push eax
call fcn.00416f00
add esp, 0x24
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x4345d4
cmp esi, 0xffffffff
je 0x4345d4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x434591
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [esp]
push 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push ecx
push eax
push ebx
push esi
call edi
test eax, eax
je 0x43459e
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
jne 0x434570
push ebx
call fcn.004bee44
add esp, 4
xor edi, edi
jmp 0x43461d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4345b3
movzx edi, di
or edi, 0x80070000
push edi
push 5
call fcn.0042c190
mov ecx, eax
call fcn.00413380
push edi
push str.Failed_WriteFile:_0x_08x.
push str.kupdate::KWpsUpdateImpl::_SaveActions
push 0xbac
jmp 0x434608
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4345e9
movzx edi, di
or edi, 0x80070000
push edi
push 5
call fcn.0042c190
mov ecx, eax
call fcn.00413380
push edi
push str.Failed_CreateFile:_0x_08x.
push str.kupdate::KWpsUpdateImpl::_SaveActions
push 0xba4
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.00412750
push ebx
call fcn.004bee44
add esp, 0x1c
test esi, esi
je 0x43462d
cmp esi, 0xffffffff
je 0x43462d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x434663
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x434659
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43469d
push edx
push ecx
call fcn.004bee2d
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4346ad
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4346a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4346a3
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