Function at 0x4350a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502cbd
mov eax, dword fs:[0]
push eax
sub esp, 0x70
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 esi, dword [ebp + 8]
push str.Save_actions.
push str.kupdate::KWpsUpdateImpl::_SaveActions
push 0xbba
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
call fcn.00412230
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
push esi
call fcn.0047ca90
mov edi, eax
add esp, 0x1c
test edi, edi
jns 0x4351c6
call fcn.0042ca80
mov esi, eax
mov dword [ebp - 0x70], 0
push 0xd
xor eax, eax
mov dword [ebp - 0x60], 0
push str.save_response
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00403a70
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
push 5
mov ecx, esi
call fcn.00412e90
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4351a2
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435198
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x435198
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
push edi
push str.Failed_save_response:_0x_08x.
push str.kupdate::KWpsUpdateImpl::_SaveActions
push 0xbbf
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 0
call fcn.00412230
add esp, 0x18
jmp 0x43543b
lea eax, [ebp - 0x40]
push 0x21
push eax
call fcn.00417040
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00416690
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004162c0
add esp, 0x14
test al, al
jne 0x435256
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00415150
mov edi, eax
add esp, 4
test edi, edi
je 0x435256
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push eax
cmovae ecx, dword [ebp - 0x28]
push ecx
push str.Failed_CreateDir:__s__Error_Code_:_d
push str.kupdate::KWpsUpdateImpl::_SaveActions
push 0xbcb
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 0
call fcn.00412230
add esp, 0x1c
jmp 0x4353a3
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 - 0x7c], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x43534e
cmp esi, 0xffffffff
je 0x43534e
push dword [ebp - 0x48]
call fcn.004edbb0
mov edi, eax
push edi
call fcn.004c6f7d
push dword [ebp - 0x48]
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
mov ebx, eax
cmovae ecx, dword [ebp - 0x58]
push ebx
push ecx
push 0x518bd8
call fcn.004ecdc0
add esp, 0x18
test edi, edi
je 0x4352ef
jmp 0x4352d0
push 0
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4352ff
sub edi, dword [ebp - 0x74]
jne 0x4352d0
push ebx
call fcn.004c6f86
add esp, 4
xor edi, edi
jmp 0x43539c
call fcn.0042ca80
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x43531c
movzx edi, di
or edi, 0x80070000
mov ecx, dword [ebp - 0x78]
push edi
push 5
call fcn.00413020
push edi
push str.Failed_WriteFile:_0x_08x.
push str.kupdate::KWpsUpdateImpl::_SaveActions
push 0xbe1
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.00412230
push ebx
call fcn.004c6f86
add esp, 0x1c
jmp 0x435393
call fcn.0042ca80
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x43536a
movzx edi, di
or edi, 0x80070000
push edi
push 5
mov ecx, ebx
call fcn.00413020
push edi
push str.Failed_CreateFile:_0x_08x.
push str.kupdate::KWpsUpdateImpl::_SaveActions
push 0xbd4
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 5
call fcn.00412230
add esp, 0x18
test esi, esi
je 0x4353a3
cmp esi, 0xffffffff
je 0x4353a3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4353dd
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4353d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435461
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x435427
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43541d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435461
push edx
push ecx
call fcn.004c6f6f
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 - 0x44]
cmp edx, 0x10
jb 0x435471
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x435467
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x435467
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