Function at 0x4136d0
Capabilities:
Delete file
Hash data using sha256
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4466c9
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x45c3a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
add eax, 0x34
mov word [ebp - 0x3c], cx
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
call fcn.004036a0
cmp byte [ebp + 0x10], 0
mov dword [ebp - 4], 0
jne 0x413758
mov eax, dword [esi + 4]
mov al, byte [eax + 0x65]
test al, al
je 0x413758
push 3
push 0x453668
lea ecx, [ebp - 0x3c]
call fcn.00403130
push ecx
lea eax, [ebp - 0x3c]
push eax
mov ecx, ebx
call fcn.00407a40
test al, al
jne 0x41376f
xor bl, bl
jmp 0x413b19
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00407f40
test al, al
jne 0x4137bc
xor bl, bl
jmp 0x413af6
cmp byte [ebp + 0x10], 0
jne 0x41383c
mov eax, dword [esi + 4]
mov al, byte [eax + 0x65]
test al, al
je 0x41383c
push ecx
lea edx, [ebp - 0x100]
lea ecx, [ebp - 0x20]
call fcn.00405e80
add esp, 4
test al, al
jne 0x41382d
cmp dword [ebp - 0x28], 8
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x3c]
cmovae edx, dword [ebp - 0x3c]
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x4137fb
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push eax
push edx
push ecx
push str.CUpdateTaskFile::Download
push str.Failed_to_decompress_update_file._Retrying._Name___s__URL___s__DownloadedSize___u_
push 0x462e98
call fcn.004025d0
add esp, 0x18
mov ecx, esi
push 1
push edi
push ebx
call fcn.004136d0
mov bl, al
jmp 0x413af6
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x20]
call fcn.00413d20
lea ecx, [ebp - 0xe4]
call fcn.0040e860
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
sub eax, ebx
push eax
mov edx, ebx
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xe0], 0x6a09e667
mov dword [ebp - 0xdc], 0xbb67ae85
mov dword [ebp - 0xd8], 0x3c6ef372
mov dword [ebp - 0xd4], 0xa54ff53a
mov dword [ebp - 0xd0], 0x510e527f
mov dword [ebp - 0xcc], 0x9b05688c
mov dword [ebp - 0xc8], 0x1f83d9ab
mov dword [ebp - 0xc4], 0x5be0cd19
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xe8], eax
call fcn.00408ac0
add esp, 4
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0xe0]
call fcn.00408b40
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0040e8f0
push str.SHA256
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.00403b10
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 5
mov ecx, dword [esi + 4]
push eax
call fcn.00406eb0
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x104], 8
mov dword [ebp - 0xec], edx
jb 0x41393b
push dword [ebp - 0x118]
call fcn.0041b8e3
mov edx, dword [ebp - 0xec]
add esp, 4
xor eax, eax
mov dword [ebp - 0x104], 7
mov dword [ebp - 0x108], 0
mov word [ebp - 0x118], ax
cmp word [edx], ax
jne 0x413961
xor ecx, ecx
jmp 0x413983
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xf4], eax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413970
sub ecx, dword [ebp - 0xf4]
sar ecx, 1
push ecx
push edx
push dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00407120
test eax, eax
sete al
mov byte [esi + 0x30], al
test al, al
jne 0x413a03
cmp byte [ebp + 0x10], al
jne 0x413a03
cmp dword [ebp - 0x40], 8
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x54]
cmovae ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x28], 8
lea edx, [ebp - 0x3c]
cmovae edx, dword [ebp - 0x3c]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4139c6
mov eax, dword [eax]
push dword [ebp - 0xec]
push ecx
push dword [ebp - 0xe8]
push edx
push eax
push str.CUpdateTaskFile::Download
push str.Failed_to_verify_compressed_update_file._Retrying._Name___s__URL___s__DecompressedSize___u__DecompressedHash___s__ExpectedHash___s_
push 0x462e98
call fcn.004025d0
add esp, 0x20
mov ecx, esi
push 1
push edi
push dword [ebp - 0xf0]
call fcn.004136d0
mov bl, al
jmp 0x413ad1
cmp dword [edi + 0x14], 8
jb 0x413a0d
mov eax, dword [edi]
jmp 0x413a0f
mov eax, edi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
je 0x413acf
push 0
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0xe8]
mov dword [ebp - 0x24], 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413ab7
mov eax, dword [ebp - 0xe8]
cmp eax, dword [ebp - 0x24]
jne 0x413ab7
lea ecx, [esi + 0x18]
cmp ecx, edi
je 0x413a6f
push 0xffffffffffffffff
push 0
push edi
call fcn.004036a0
cmp dword [ebp - 0x28], 8
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x3c]
cmovae edx, dword [ebp - 0x3c]
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x413a88
mov ecx, dword [ecx]
cmp byte [esi + 0x30], 0
mov eax, str.true
mov edi, str.false
cmove eax, edi
push eax
push edx
push ecx
push str.CUpdateTaskFile::Download
push str.Finished._Name___s__URL___s__IsVerified___s_
push 0x462e98
call fcn.004025d0
add esp, 0x18
mov bl, 1
jmp 0x413ad1
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x14], 8
jb 0x413ac8
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
cmp dword [ebp - 0x40], 8
jb 0x413ae2
push dword [ebp - 0x54]
call fcn.0041b8e3
add esp, 4
xor eax, eax
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x100]
test eax, eax
je 0x413b09
push eax
call fcn.0041b8e3
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x413b19
push eax
call fcn.0041b8e3
add esp, 4
cmp dword [ebp - 0x28], 8
jb 0x413b2a
push dword [ebp - 0x3c]
call fcn.0041b8e3
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041b8d4
mov esp, ebp
pop ebp
ret 0xc