Function at 0x457710
Capabilities:
Delete file
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a8747
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov edi, ecx
push str.CheckDataIntegrity
mov eax, dword [edi + 4]
push eax
call fcn.0044a930
push eax
call fcn.0044abc0
add esp, 0xc
xor ebp, ebp
mov edx, dword [str.NetlogUpdateError.log]
push ebp
push 0x80
push 2
push ebp
push ebp
push 0xc0000000
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
call fcn.0049da84
lea eax, [esp + 0x3c]
push eax
call fcn.004105d0
add esp, 8
mov ecx, eax
mov dword [esp + 0xbc], ebp
call fcn.004125b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0xa4], 0xffffffff
call fcn.0049da16
mov esi, dword [esp + 0xac]
mov ebx, 1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4577d9
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ebp, edx
push 0x4d11a0
lea ecx, [esp + 0x38]
call fcn.0049da84
xor eax, eax
mov dword [esp + 0xa4], ebx
cmp ebp, eax
mov dword [esp + 0x18], eax
jbe 0x457bfd
mov dword [esp + 0x20], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x30], eax
jmp 0x457813
mov esi, dword [esp + 0xac]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x34]
lea esi, [edx + eax]
push esi
call fcn.0049db4f
add esi, 4
mov eax, dword [esi]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x3c], ecx
push ecx
mov edx, dword [esi + 8]
mov ecx, esp
mov dword [esp + 0x44], edx
lea edx, [esp + 0x38]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], esp
push edx
mov dword [esp + 0x4c], eax
call fcn.0049d78b
mov byte [esp + 0xa8], bl
call fcn.00404e70
mov ecx, eax
call fcn.00405540
test eax, eax
je 0x4578ae
mov eax, dword [edi + 4]
push str.FIND_GuardFile_:_Set_ReadOnly_FALSE
push eax
call fcn.0044a930
push eax
call fcn.0044abc0
add esp, 0xc
lea edx, [esp + 0x34]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0049d78b
mov byte [esp + 0xac], bl
call fcn.00404e70
mov ecx, eax
call fcn.004053c0
mov dword [esp + 0x18], ebx
push 0
push 0x80
push 3
push 0
push ebx
push bind
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0049d78b
lea ecx, [esp + 0x7c]
push ecx
call fcn.004105d0
add esp, 8
mov ecx, eax
mov byte [esp + 0xbc], 4
call fcn.004125b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x60]
mov esi, eax
mov byte [esp + 0xa4], bl
call fcn.0049da16
cmp esi, 0xffffffff
jne 0x4579ba
mov edx, dword [0x4cd448]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x48]
push 0x69
push eax
mov byte [esp + 0xac], 5
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov ecx, dword [eax]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s_r_n
push eax
mov byte [esp + 0xb4], 6
call fcn.004989ae
add esp, 0x10
lea ecx, [esp + 0x48]
mov byte [esp + 0xa4], 5
call fcn.0049da16
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x3c]
push eax
call ebp
mov ecx, dword [esp + 0x34]
mov edx, dword [edi + 4]
push ecx
push str.INVALID_HANDLE_VALUE__s
push edx
call fcn.0044a930
push eax
call fcn.0044abc0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], 0
mov byte [esp + 0xa4], bl
call fcn.0049da16
jmp 0x457bdc
lea eax, [esp + 0x80]
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0x98]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x74]
lea ecx, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x74]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
lea edx, [esp + 0x64]
lea eax, [esp + 0x4c]
mov dword [esp + 0x70], ecx
push edx
push eax
mov ecx, edi
call fcn.0045c180
xor esi, esi
cmp eax, esi
jne 0x457a44
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], esi
jmp 0x457a76
mov ecx, dword [esp + 0x6e]
mov eax, dword [esp + 0x56]
and ecx, 0xffff
and eax, 0xffff
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x457a6c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], esi
jmp 0x457a76
cmp dword [esp + 0x1c], esi
je 0x457b92
mov edx, dword [0x4cd448]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x28]
push 0x6a
push eax
mov byte [esp + 0xac], 7
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x56]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x54]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x5a]
push edx
mov edx, dword [esp + 0x62]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push str._s_s_Local___02d__02d__d___02d:_02d:_02d___r_n
push eax
mov byte [esp + 0xcc], 8
call fcn.004989ae
add esp, 0x28
lea ecx, [esp + 0x28]
mov byte [esp + 0xa4], 7
call fcn.0049da16
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x88]
push esi
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x3c]
push eax
call ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push ecx
push edx
call fcn.0044a930
push eax
call fcn.0044abc0
add esp, 8
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.0049d78b
lea ecx, [esp + 0x28]
push ecx
call fcn.004105d0
mov esi, dword [eax]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
call fcn.0049da16
mov byte [esp + 0xa4], bl
lea ecx, [esp + 0x10]
call fcn.0049da16
jmp 0x457bdc
cmp dword [esp + 0x18], esi
je 0x457bdc
mov edx, dword [edi + 4]
push str.FIND_GuardFile_:_Set_ReadOnly_TRUE
push edx
call fcn.0044a930
push eax
call fcn.0044abc0
add esp, 0xc
lea eax, [esp + 0x34]
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
call fcn.0049d78b
mov byte [esp + 0xac], bl
call fcn.00404e70
mov ecx, eax
call fcn.004053c0
mov dword [esp + 0x18], 0
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
add ecx, 0x14
dec eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
jne 0x45780c
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x457c9a
lea edx, [esp + 0x28]
push 0x46
push edx
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov esi, dword [eax]
lea eax, [esp + 0x24]
push 0
push eax
mov byte [esp + 0xac], 0xa
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov eax, dword [eax]
push 0
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x24]
call fcn.0049da16
lea ecx, [esp + 0x28]
mov byte [esp + 0xa4], bl
call fcn.0049da16
mov ecx, dword [edi + 4]
push str.CheckDataIntegrity_Wrong_DownFile_Or_PatchInfo
push ecx
call fcn.0044a930
push eax
call fcn.0044abc0
add esp, 0xc
lea ecx, [esp + 0x34]
mov dword [esp + 0xa4], 0xffffffff
call fcn.0049da16
xor eax, eax
jmp 0x457cc7
mov edx, dword [edi + 4]
push str.CheckDataIntegrity_Ok
push edx
call fcn.0044a930
push eax
call fcn.0044abc0
add esp, 0xc
lea ecx, [esp + 0x34]
mov dword [esp + 0xa4], 0xffffffff
call fcn.0049da16
mov eax, ebx
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x98
ret 4