Function at 0x483590
Capabilities:
Write file on windows

Disassembly:
push 0x94
mov eax, 0x4b9d79
call fcn.004935c5
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, ecx
cmp ebx, edi
je 0x48381b
cmp dword [esi + 0x678], edi
je 0x48381b
push 0x2d
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.00492b40
mov eax, dword [esi + 0x670]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x674]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0x68c]
mov dword [ebp - 0x6c], eax
mov al, byte [esi + 0x678]
mov byte [ebp - 0x68], al
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0x62c]
push eax
call fcn.004824d7
add esp, 0x14
add esi, 0x21c
push esi
lea ecx, [ebp - 0x48]
call fcn.0042e48d
mov esi, str..dt_
push esi
mov dword [ebp - 4], edi
call fcn.00493091
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0042edb8
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x483637
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0042e993
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], edi
jne 0x48366e
push str.Get_dtFile_Md5_Failed.
push str.kupdate::KHttpDownload::SaveStateToCfg
push 0x303
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdatewebhttpdownload.cpp
push edi
call fcn.0042f683
add esp, 0x14
jmp 0x483805
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x48367a
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x94]
push ecx
push eax
call fcn.004824d7
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x64]
call fcn.0042e48d
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x48369e
lea eax, [ebp - 0x64]
push edi
push 0x80
push 2
push edi
xor esi, esi
inc esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x9c], ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.0047b7a6
test al, al
je 0x48372f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4836e6
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_CreateFile
push str.kupdate::KHttpDownload::SaveStateToCfg
push 0x30d
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdatewebhttpdownload.cpp
push edi
call fcn.0042f683
add esp, 0x18
cmp ebx, edi
je 0x483714
cmp ebx, 0xffffffff
je 0x483714
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
lea ecx, [ebp - 0x64]
call fcn.0042e109
push edi
push esi
lea ecx, [ebp - 0x2c]
call fcn.0042e109
push edi
push esi
jmp 0x483813
push 0x2d
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.0048d0b2
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
push edi
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x98]
push eax
push 0x2d
lea eax, [ebp - 0x94]
push eax
push ebx
mov dword [ebp - 0x98], edi
call esi
test eax, eax
je 0x4837b8
push edi
lea eax, [ebp - 0x98]
push eax
push 4
lea eax, [ebp - 0xa0]
push eax
push ebx
call esi
test eax, eax
je 0x4837b8
cmp ebx, edi
je 0x483793
cmp ebx, 0xffffffff
je 0x483793
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x64]
call fcn.0042e109
push edi
push esi
lea ecx, [ebp - 0x2c]
call fcn.0042e109
push edi
push esi
lea ecx, [ebp - 0x48]
call fcn.0042e109
mov eax, esi
jmp 0x48381d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4837cc
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x4be5f0
push str.kupdate::KHttpDownload::SaveStateToCfg
push 0x318
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdatewebhttpdownload.cpp
push edi
call fcn.0042f683
add esp, 0x18
cmp ebx, edi
je 0x4837fa
cmp ebx, 0xffffffff
je 0x4837fa
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp - 0x64]
call fcn.0042e109
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042e109
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0042e109
xor eax, eax
call fcn.00493648
ret 4