Function at 0x48d7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ee53
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x590cc0]
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 edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x48da87
cmp dword [esi + 0x678], ebx
je 0x48da87
push 0x2d
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.004ba010
mov edx, dword [esi + 0x674]
mov eax, dword [esi + 0x68c]
mov ecx, dword [esi + 0x670]
mov dword [ebp - 0x74], edx
lea edx, [ebp - 0x84]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], ecx
mov cl, byte [esi + 0x678]
push edx
lea eax, [esi + 0x62c]
push eax
mov byte [ebp - 0x68], cl
call fcn.0048be20
lea ecx, [esi + 0x21c]
add esp, 0x14
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
lea esi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x48d870
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.00402460
push 4
push str..dt_
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00402340
mov eax, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x48d8ab
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0044d200
add esp, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], ebx
jne 0x48d919
push str.Get_dtFile_Md5_Failed.
push str.kupdate::KHttpDownload::SaveStateToCfg
push 0x398
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push ebx
call fcn.0041a9b0
add esp, 0x14
cmp dword [ebp - 0x18], esi
jb 0x48d8ef
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b9008
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], esi
jb 0x48da87
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b9008
add esp, 4
jmp 0x48da87
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x48d924
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x94]
push ecx
push eax
call fcn.0048be20
add esp, 8
push edi
lea ecx, [ebp - 0x64]
call fcn.00402580
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], esi
jae 0x48d948
lea eax, [ebp - 0x64]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov dword [ebp - 0xa0], esi
mov byte [ebp - 4], 3
cmp esi, ebx
je 0x48d974
cmp esi, 0xffffffff
jne 0x48d9bc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x48d988
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_CreateFile
push str.kupdate::KHttpDownload::SaveStateToCfg
push 0x3a2
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push ebx
call fcn.0041a9b0
add esp, 0x18
cmp esi, ebx
je 0x48da6f
cmp esi, 0xffffffff
je 0x48da6f
jmp 0x48da68
push 0x2d
lea edx, [ebp - 0x94]
push edx
push ebx
call fcn.00490f20
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
add esp, 0xc
push ebx
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x98]
push eax
push 0x2d
lea ecx, [ebp - 0x94]
push ecx
push esi
mov dword [ebp - 0x98], ebx
call edi
test eax, eax
je 0x48da36
push ebx
lea edx, [ebp - 0x98]
push edx
push 4
lea eax, [ebp - 0x9c]
push eax
push esi
call edi
test eax, eax
je 0x48da36
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x64]
call fcn.0051c7a0
lea ecx, [ebp - 0x2c]
call fcn.0051c7a0
lea ecx, [ebp - 0x48]
call fcn.0051c7a0
mov eax, 1
jmp 0x48da89
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x48da4a
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_WriteFile:_0x_08x.
push str.kupdate::KHttpDownload::SaveStateToCfg
push 0x3ad
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push ebx
call fcn.0041a9b0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x64]
call fcn.0051c7a0
lea ecx, [ebp - 0x2c]
call fcn.0051c7a0
lea ecx, [ebp - 0x48]
call fcn.0051c7a0
xor eax, eax
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.004b9ff3
mov esp, ebp
pop ebp
ret 4