Function at 0x41e0c5
Capabilities:
Delete file
Get file size
Move file
Write file on windows

Disassembly:
mov eax, 0x45cf4f
call fcn.004485c4
sub esp, 0x30c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, 0x465cf2
xor ebx, ebx
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00439a70
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
push 0x467c34
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 1
call fcn.0043ca60
lea ecx, [ebp - 0x150]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0043b640
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 5
call fcn.0043bff0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.0043bff0
push esi
lea ecx, [ebp - 0xe8]
call fcn.00439a70
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0xe8]
push eax
push 0x4665a0
lea eax, [ebp - 0x124]
push eax
mov byte [ebp - 4], 6
call fcn.0043ca60
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0043b640
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0xa
call fcn.0043bff0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 9
call fcn.0043bff0
mov edi, str.fs::DownloadComponentFileAsync_1028
push edi
call fcn.004468a0
pop ecx
mov dword [ebp - 0x3c], eax
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xb
call fcn.00439a40
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x50]
push eax
push 0x4680a0
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 0xc
call fcn.0043ca60
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xb8], 0x10
mov esi, dword [ebp - 0xcc]
jae 0x41e1e3
lea esi, [ebp - 0xcc]
mov ecx, eax
call fcn.0043b790
push esi
push eax
push edi
push str.___s__comp_id_d__file_s_
push ebx
call fcn.00437bbc
add esp, 0x14
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xc
call fcn.0043bff0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xb
call fcn.0043bff0
lea edi, [ebp - 0xd0]
call fcn.00426e66
cmp al, bl
jne 0x41e264
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.0041836d
mov byte [ebp + 0x17], bl
push ebx
push 1
lea ecx, [ebp - 0xd0]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x150]
call fcn.00417a85
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0x17]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
lea eax, [ebp - 0xd0]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x84]
push eax
call fcn.00415459
add esp, 0xc
push dword [ebp + 8]
lea edi, [ebp - 0x84]
mov byte [ebp - 4], 0xe
call fcn.0041c2f2
mov eax, edi
push eax
lea ecx, [ebp - 0x34]
call fcn.004188b1
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 0xf
cmp dword [esi], ebx
je 0x41e306
lea eax, [ebp - 0x114]
push eax
call fcn.0041c3f3
pop ecx
push eax
lea eax, [ebp - 0xb4]
push str..part_
push eax
mov byte [ebp - 4], 0x10
call fcn.00417cd3
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x11
call fcn.0041754b
push ebx
push 1
lea ecx, [ebp - 0xb4]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xf
call fcn.00417a85
push dword [ebp + 8]
lea edi, [ebp - 0x34]
call fcn.0041c2f2
mov eax, dword [esi + 0xc]
push 0x465cf2
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x88], eax
mov dword [ebp + 8], ebx
call fcn.00418739
push ebx
push 1
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x318]
push eax
mov byte [ebp - 4], 0x12
call fcn.004012da
push ebx
push 1
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x14
call fcn.00417a85
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], 3
jge 0x41e848
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x30]
xor esi, esi
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x14], ebx
jae 0x41e378
lea eax, [ebp - 0x30]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, ebx
je 0x41e3aa
cmp edi, 0xffffffff
je 0x41e3a3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [ebp + 8]
je 0x41e3c4
push dword [ebp + 8]
push esi
push str.__unexpected_file_size:__lu_____lu
push ebx
call fcn.00437bbc
add esp, 0x10
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
je 0x41e3dc
mov eax, dword [ebp - 0x29c]
cmp eax, ebx
je 0x41e3dc
cmp dword [ebp + 8], eax
jae 0x41e572
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
push dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x1fc]
call fcn.0041ee7d
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x17
call fcn.0041f303
pop ecx
mov byte [ebp - 0x1cc], 1
call fcn.0041efaf
mov esi, edi
push dword [esi + 8]
push str.__connect_time:__d_ms
push ebx
call fcn.00437bbc
add esp, 0xc
lea eax, [ebp - 0x1fc]
mov byte [ebp - 4], 0x16
call fcn.0041eee8
mov ecx, dword [esi]
cmp ecx, ebx
mov eax, dword [ebp - 0x5c]
mov dword [ebp + 8], eax
je 0x41e471
push dword [ebp + 0x18]
mov edx, dword [ebp - 0x88]
push dword [ebp + 0x14]
add eax, edx
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ecx]
push esi
call dword [eax + 4]
cmp dword [ebp + 8], ebx
jne 0x41e489
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x41e482
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x41e495
lea eax, [ebp - 0x30]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x40], eax
cmp eax, ebx
mov byte [ebp - 4], 0x18
je 0x41e77b
cmp eax, 0xffffffff
je 0x41e77b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x38], ebx
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x58]
push edi
push dword [ebp - 0x60]
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x14], ebx
call fcn.0041f90f
cmp al, bl
pop ecx
pop ecx
jne 0x41e6de
cmp dword [ebp - 0x58], ebx
jbe 0x41e54a
cmp edi, dword [ebp - 0x58]
je 0x41e54a
push 0x465cf2
lea ecx, [ebp - 0x16c]
call fcn.00418739
lea eax, [ebp - 0x16c]
push eax
push 1
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0x1e
call fcn.0041875b
mov byte [ebp - 4], 0x1f
push dword [ebp - 0x29c]
mov ecx, dword [ebp - 0x5c]
add edi, ecx
push edi
push str.Invalid_downloaded_file_size__d___d
push eax
jmp 0x41e7c3
cmp dword [ebp - 0x4c], ebx
je 0x41e558
push dword [ebp - 0x4c]
call fcn.00445bdd
pop ecx
cmp dword [ebp - 0x40], ebx
je 0x41e566
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 0x15
call fcn.0041b86d
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
je 0x41e626
mov eax, dword [ebp - 0x80]
push 0x10
pop esi
cmp dword [ebp - 0x6c], esi
jae 0x41e58b
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x6c], esi
mov ecx, dword [ebp - 0x80]
jae 0x41e59d
lea ecx, [ebp - 0x80]
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x41e5a8
lea eax, [ebp - 0x30]
push ecx
push eax
push str.__rename_file__s_to__s
push ebx
call fcn.00437bbc
mov ecx, dword [ebp - 0x80]
add esp, 0x10
cmp dword [ebp - 0x6c], esi
jae 0x41e5c3
lea ecx, [ebp - 0x80]
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x41e5ce
lea eax, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x41e626
push 0x465cf2
lea ecx, [ebp - 0x188]
call fcn.00418739
lea eax, [ebp - 0x188]
push eax
push 1
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0x20
call fcn.0041875b
mov edi, eax
mov byte [ebp - 4], 0x21
cmp dword [ebp - 0x6c], 0x10
mov esi, dword [ebp - 0x80]
jae 0x41e614
lea esi, [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Cant_rename_downloaded_file_to__s__err_d_
jmp 0x41e7c2
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0043a7a0
mov ecx, dword [ebp + 0x14]
push str.filepath
mov byte [ebp - 4], 0x22
call fcn.0043d440
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, eax
call fcn.0043c970
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0x15
call fcn.0043bff0
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x98]
call fcn.00439a40
mov ecx, dword [ebp + 0x14]
push str.filesize
mov byte [ebp - 4], 0x23
call fcn.0043d440
lea ecx, [ebp - 0x98]
push ecx
mov ecx, eax
call fcn.0043c970
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x15
call fcn.0043bff0
lea esi, [ebp - 0x318]
call fcn.00404538
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.00417a85
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.0041836d
mov byte [ebp + 0x17], 1
jmp 0x41e234
mov edi, dword [ebp - 0x48]
add dword [ebp - 0x38], edi
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0x4c]
mov dword [ebp - 0x14], 1
push dword [ebp - 0x40]
mov dword [ebp - 0x54], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x54]
add dword [ebp + 8], ecx
cmp eax, ebx
jne 0x41e753
push 0x465cf2
lea ecx, [ebp - 0x1a4]
call fcn.00418739
lea eax, [ebp - 0x1a4]
push eax
push 1
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0x1c
call fcn.0041875b
mov edi, eax
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0x1c], 0x10
mov esi, dword [ebp - 0x30]
jae 0x41e744
lea esi, [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Cant_save_file__s__err_d_
jmp 0x41e7c2
mov ecx, dword [esi]
cmp ecx, ebx
mov dword [ebp - 0x14], ebx
je 0x41e76e
push dword [ebp + 0x18]
add dword [esi + 0xc], edi
push dword [ebp + 0x14]
mov eax, dword [ecx]
push dword [ebp + 0x10]
push esi
call dword [eax + 4]
call fcn.004051ef
mov dword [ebp - 0x18], ebx
jmp 0x41e4de
push 0x465cf2
lea ecx, [ebp - 0x1c0]
call fcn.00418739
lea eax, [ebp - 0x1c0]
push eax
push 1
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0x19
call fcn.0041875b
mov edi, eax
mov byte [ebp - 4], 0x1a
cmp dword [ebp - 0x1c], 0x10
mov esi, dword [ebp - 0x30]
jae 0x41e7b5
lea esi, [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Cant_open_file__s__err_d_
push edi
call fcn.004180c3
add esp, 0x10
mov ecx, eax
call fcn.00418793
xor ebx, ebx
push ebx
push ebx
jmp 0x41e8fc
call fcn.004051ef
cmp dword [esi], ebx
je 0x41e86f
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x14]
call fcn.0041fa77
add esp, 0xc
cmp al, bl
jne 0x41e356
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x41e87b
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [ebp - 0x318]
call fcn.00404538
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.00417a85
jmp 0x41e225
call fcn.004481a9
int3