Function at 0x4a9fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b9ae
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x4aa384
mov ecx, dword [esi + 0x678]
test ecx, ecx
je 0x4aa384
mov eax, dword [esi + 0x670]
mov dword [ebp - 0x90], eax
mov eax, dword [esi + 0x674]
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 0x68c]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [esi + 0x62c]
mov dword [ebp - 0xb4], 0
push eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov byte [ebp - 0x88], cl
call fcn.00451560
add esi, 0x21c
mov dword [ebp - 0x84], 0
mov ecx, esi
mov dword [ebp - 0x74], 0
add esp, 8
mov dword [ebp - 0x70], 7
xor eax, eax
mov word [ebp - 0x84], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aa0d4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x84]
call fcn.00403a70
push 4
push str..dt_
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
call fcn.004038f0
mov eax, 0x30
push 0x40
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x70], 8
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
push ecx
push eax
call fcn.004ecbf0
add esp, 0x14
mov dword [ebp - 0x6c], 0
xor eax, eax
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aa160
sub ecx, edx
lea eax, [ebp - 0x54]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00403a70
cmp dword [ebp - 0x5c], 0
mov byte [ebp - 4], 1
jne 0x4aa1ab
push str.Get_dtFile_Md5_Failed.
push str.kupdate::KHttpDownload::SaveStateToCfg
push 0x3ec
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.00412230
add esp, 0x14
xor edi, edi
jmp 0x4aa2f7
cmp dword [ebp - 0x58], 8
lea ecx, [ebp - 0xb4]
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push ecx
push eax
call fcn.00451560
add esp, 8
lea ecx, [ebp - 0xcc]
push edi
call fcn.004050b0
cmp dword [ebp - 0xb8], 8
lea eax, [ebp - 0xcc]
push 0
cmovae eax, dword [ebp - 0xcc]
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 - 0xd8], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x4aa2a3
cmp esi, 0xffffffff
je 0x4aa2a3
push 0x2d
lea eax, [ebp - 0xb4]
push eax
push 0
call sub.Qt5CoreKso.dll_z_crc32
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0
push 0
push eax
push 0x2d
lea eax, [ebp - 0xb4]
push eax
push esi
call edi
test eax, eax
je 0x4aa285
push 0
lea eax, [ebp - 0xd0]
push eax
push 4
lea eax, [ebp - 0xd4]
push eax
push esi
call edi
test eax, eax
je 0x4aa285
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4aa2ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4aa297
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x401
mov edx, str.Failed_WriteFile:_0x_08x.
jmp 0x4aa2bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4aa2b5
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x3f6
mov edx, str.Failed_CreateFile
push eax
push edx
push str.kupdate::KHttpDownload::SaveStateToCfg
push ecx
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.00412230
add esp, 0x18
test esi, esi
je 0x4aa2ea
xor edi, edi
cmp esi, 0xffffffff
je 0x4aa2ea
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4aa2ec
xor edi, edi
lea ecx, [ebp - 0xcc]
call fcn.00403430
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x4aa32d
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aa323
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4aa370
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
cmp edx, 8
jb 0x4aa380
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aa376
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4aa376
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
jmp 0x4aa386
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 4