Function at 0x471b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66bea6
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x718924]
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 0x471e1a
mov ecx, dword [esi + 0x678]
test ecx, ecx
je 0x471e1a
mov eax, dword [esi + 0x670]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x674]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x68c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [esi + 0x62c]
mov dword [ebp - 0x70], 0
push eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x44], cl
call fcn.0046eea0
xor eax, eax
mov dword [ebp - 0x30], 0
add esp, 8
mov word [ebp - 0x40], ax
lea eax, [esi + 0x21c]
mov dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x40]
push eax
call fcn.00472510
push 4
push str..dt_
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0044e7a0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0048ede0
add esp, 8
cmp dword [ebp - 0x78], 0
mov byte [ebp - 4], 1
jne 0x471c54
push str.Get_dtFile_Md5_Failed.
push str.kupdate::KHttpDownload::SaveStateToCfg
push 0x3e4
push str.D:publish_283488_rc_2404Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.0048ffd0
add esp, 0x14
xor edi, edi
jmp 0x471dd5
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
call fcn.0046eea0
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
push edi
call fcn.00472510
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
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 - 0x94], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x471d42
cmp esi, 0xffffffff
je 0x471d42
push 0x2d
lea eax, [ebp - 0x70]
push eax
push 0
call fcn.0048eb50
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push 0
push eax
push 0x2d
lea eax, [ebp - 0x70]
push eax
push esi
call edi
test eax, eax
je 0x471d24
push 0
lea eax, [ebp - 0x8c]
push eax
push 4
lea eax, [ebp - 0x90]
push eax
push esi
call edi
test eax, eax
je 0x471d24
mov edi, 1
jmp 0x471d77
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x471d36
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x3f9
mov edx, str.Failed_WriteFile:_0x_08x.
jmp 0x471d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x471d54
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x3ee
mov edx, str.Failed_CreateFile
push eax
push edx
push str.kupdate::KHttpDownload::SaveStateToCfg
push ecx
push str.D:publish_283488_rc_2404Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.0048ffd0
add esp, 0x18
xor edi, edi
test esi, esi
je 0x471d87
cmp esi, 0xffffffff
je 0x471d87
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x471dc1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471db7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471e39
push edx
push ecx
call fcn.004cb4db
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x88]
call fcn.00448fb0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x471e16
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471e0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471e39
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov eax, edi
jmp 0x471e1c
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.004cb998
mov esp, ebp
pop ebp
ret 4
call fcn.004e6589
int3