Function at 0x45c060
Capabilities:
Delete file
Encode data using xor
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b17d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, ecx
push str.CheckDataIntegrity
mov dword [esp + 0x24], edi
mov eax, dword [edi + 4]
push eax
call fcn.0044f8c0
push eax
call fcn.0044fb50
add esp, 0xc
xor ebx, ebx
mov edx, dword [str.NetlogUpdateError.log]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
call fcn.004a6b87
lea eax, [esp + 0x48]
push eax
call fcn.00411130
add esp, 8
mov ecx, eax
mov dword [esp + 0x74], ebx
call fcn.00414f10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x5c], 0xffffffff
call fcn.004a6b19
mov esi, dword [esp + 0x64]
mov ebp, 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebp
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x45c10f
mov dword [esp + 0x1c], ebx
jmp 0x45c11b
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 3
mov dword [esp + 0x1c], ecx
push 0x4dca10
lea ecx, [esp + 0x50]
call fcn.004a6b87
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ecx
jbe 0x45c4a5
jmp 0x45c14f
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov eax, dword [esi + 4]
lea esi, [eax + ecx*8]
lea ecx, [esp + 0x4c]
push esi
call fcn.004a6c52
mov ecx, dword [esi + 4]
lea edx, [esp + 0x4c]
push ecx
mov dword [esp + 0x54], ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004a688e
mov byte [esp + 0x60], 1
call fcn.00405180
mov ecx, eax
call fcn.00405840
cmp eax, ebx
je 0x45c1b3
push ebx
push ecx
lea eax, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.004a688e
mov byte [esp + 0x64], 1
call fcn.00405180
mov ecx, eax
call fcn.004056c0
mov dword [esp + 0x18], ebp
push ebx
push 0x80
push 3
push ebx
push ebp
push bind
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004a688e
lea eax, [esp + 0x4c]
push eax
call fcn.00411130
add esp, 8
mov ecx, eax
mov byte [esp + 0x74], 4
call fcn.00414f10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x5c], 1
call fcn.004a6b19
cmp esi, 0xffffffff
jne 0x45c2ac
mov ecx, dword [0x4d8cb8]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x34]
push 0x69
push edx
mov byte [esp + 0x64], 5
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov eax, dword [eax]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s_s_r_n
push edx
mov byte [esp + 0x6c], 6
call fcn.004a1aae
add esp, 0x10
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 5
call fcn.004a6b19
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x40]
push ebx
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x4c]
mov edx, dword [edi + 4]
push ecx
push str.INVALID_HANDLE_VALUE__s
push edx
call fcn.0044f8c0
push eax
call fcn.0044fb50
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x5c], 1
call fcn.004a6b19
jmp 0x45c47e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x4c]
call fcn.0043a620
mov ebx, eax
mov ecx, 0x2000
xor eax, eax
mov edi, 0x4f6fc0
push 0x4d12f8
push ebp
rep stosd dword es:[edi], eax
xor esi, esi
call fcn.00490fb7
mov edi, eax
add esp, 8
test edi, edi
je 0x45c34b
push edi
push 0x8000
push 1
push 0x4f6fc0
call fcn.004921db
add esp, 0x10
test eax, eax
je 0x45c342
not esi
test eax, eax
mov edx, 0x4f6fc0
mov ecx, esi
je 0x45c325
lea esi, [eax]
mov ebp, ecx
xor eax, eax
mov al, byte [edx]
and ebp, 0xff
xor ebp, eax
shr ecx, 8
mov eax, dword [ebx + ebp*4 + 4]
xor ecx, eax
inc edx
dec esi
jne 0x45c30a
push edi
push 0x8000
not ecx
push 1
push 0x4f6fc0
mov esi, ecx
call fcn.004921db
add esp, 0x10
test eax, eax
jne 0x45c2fb
push edi
call fcn.00490ccd
add esp, 4
cmp dword [esp + 0x50], esi
je 0x45c363
mov dword [esp + 0x14], 1
mov dword [esp + 0x28], 0
jmp 0x45c36f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45c44a
mov ecx, dword [0x4d8cb8]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x38]
push 0x6a
push edx
mov byte [esp + 0x64], 7
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [eax]
push ecx
push esi
push edx
push eax
lea ecx, [esp + 0x20]
push str._s_s_Local___lu___Info____lu___r_n
push ecx
mov byte [esp + 0x74], 8
call fcn.004a1aae
add esp, 0x18
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 7
call fcn.004a6b19
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x44]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [edx + 4]
push eax
call fcn.0044f8c0
push eax
call fcn.0044fb50
add esp, 8
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.004a688e
lea eax, [esp + 0x40]
push eax
call fcn.00411130
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 + 0x3c]
call fcn.004a6b19
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 1
call fcn.004a6b19
jmp 0x45c47e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45c47e
push 1
push ecx
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.004a688e
mov byte [esp + 0x64], 1
call fcn.00405180
mov ecx, eax
call fcn.004056c0
mov dword [esp + 0x18], 0
mov ebp, 1
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x2c], ecx
jb 0x45c145
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], ebx
jne 0x45c531
lea ecx, [esp + 0x3c]
push 0x46
push ecx
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov esi, dword [eax]
lea edx, [esp + 0x64]
push ebx
push edx
mov byte [esp + 0x64], 0xa
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov eax, dword [eax]
push ebx
push eax
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x64]
call fcn.004a6b19
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 1
call fcn.004a6b19
mov eax, dword [edi + 4]
push str.CheckDataIntegrity_Wrong_DownFile_Or_PatchInfo
push eax
call fcn.0044f8c0
push eax
call fcn.0044fb50
add esp, 0xc
lea ecx, [esp + 0x4c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004a6b19
xor eax, eax
jmp 0x45c55b
mov ecx, dword [edi + 4]
push str.CheckDataIntegrity_Ok
push ecx
call fcn.0044f8c0
push eax
call fcn.0044fb50
add esp, 0xc
lea ecx, [esp + 0x4c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004a6b19
mov eax, ebp
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret 4