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

Disassembly:
mov eax, 0x467f8c
call fcn.00452544
sub esp, 0x35c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, 0x471e5a
xor ebx, ebx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.004433a0
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x48]
push eax
push 0x47420c
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 1
call fcn.00446390
lea ecx, [ebp - 0x174]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00444f70
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.00445920
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00445920
push esi
lea ecx, [ebp - 0x128]
call fcn.004433a0
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x128]
push eax
push 0x4727a8
lea eax, [ebp - 0x158]
push eax
mov byte [ebp - 4], 6
call fcn.00446390
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00444f70
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xa
call fcn.00445920
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 9
call fcn.00445920
mov edi, str.fs::DownloadComponentFileAsync_1144
push edi
call fcn.004508dd
pop ecx
mov dword [ebp - 0x4c], eax
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.00443370
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push eax
push 0x474680
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 0xc
call fcn.00446390
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xa4], 0x10
mov esi, dword [ebp - 0xb8]
jae 0x423a20
lea esi, [ebp - 0xb8]
mov ecx, eax
call fcn.004450c0
push esi
push eax
push edi
push str.___s__comp_id_d__file_s_
push ebx
call fcn.00441366
add esp, 0x14
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.00445920
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.00445920
lea edi, [ebp - 0xbc]
call fcn.0042d2d5
cmp al, bl
jne 0x423a9e
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.0041ba42
mov byte [ebp + 0x17], bl
push ebx
push 1
lea ecx, [ebp - 0xbc]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0x174]
call fcn.0041b05c
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 - 0xbc]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x6c]
push eax
call fcn.004187fe
add esp, 0xc
push dword [ebp + 8]
lea edi, [ebp - 0x6c]
mov byte [ebp - 4], 0xe
call fcn.0042145c
mov eax, edi
push eax
lea ecx, [ebp - 0x38]
call fcn.0041bf87
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 0xf
cmp dword [esi], ebx
je 0x423b3a
lea eax, [ebp - 0x144]
push eax
call fcn.0042155d
pop ecx
push eax
lea eax, [ebp - 0xa0]
push str..part_
push eax
mov byte [ebp - 4], 0x10
call fcn.0041b282
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x11
call fcn.0041aaa5
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0xf
call fcn.0041b05c
push dword [ebp + 8]
lea edi, [ebp - 0x38]
call fcn.0042145c
mov eax, dword [esi + 0x10]
push 0x471e5a
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x84], eax
mov dword [ebp + 8], ebx
call fcn.0041be0b
push ebx
push 1
lea eax, [ebp - 0x144]
push eax
push ebx
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x368]
push eax
mov byte [ebp - 4], 0x12
call fcn.00401589
push ebx
push 1
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0x14
call fcn.0041b05c
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], 2
jge 0x4240b9
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x34]
xor esi, esi
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], ebx
jae 0x423baf
lea eax, [ebp - 0x34]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, ebx
je 0x423be1
cmp edi, 0xffffffff
je 0x423bda
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 0x423bfb
push dword [ebp + 8]
push esi
push str.__unexpected_file_size:__lu_____lu
push ebx
call fcn.00441366
add esp, 0x10
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
je 0x423c13
mov eax, dword [ebp - 0x2ec]
cmp eax, ebx
je 0x423c13
cmp dword [ebp + 8], eax
jae 0x423de7
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], 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 - 0xf4], eax
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x234]
call fcn.004247cd
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0x17
call fcn.00424c36
pop ecx
mov byte [ebp - 0x204], 1
call fcn.004248ff
mov esi, edi
push dword [esi + 0xc]
push str.__connect_time:__d_ms
push ebx
call fcn.00441366
add esp, 0xc
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0x16
call fcn.00424838
mov ecx, dword [esi]
cmp ecx, ebx
mov eax, dword [ebp - 0xf4]
mov dword [ebp + 8], eax
je 0x423cd5
push dword [ebp + 0x18]
mov edx, dword [ebp - 0x84]
push dword [ebp + 0x14]
add eax, edx
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ecx]
push esi
call dword [eax + 4]
cmp dword [ebp + 8], ebx
jne 0x423ced
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x423ce6
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x423cf9
lea eax, [ebp - 0x34]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov byte [ebp - 4], 0x18
je 0x423fe6
cmp eax, 0xffffffff
je 0x423fe6
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 0x1b
xor edi, edi
push dword [ebp - 0xf0]
lea eax, [ebp - 0x44]
push edi
push eax
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x1c], ebx
call fcn.00425464
cmp al, bl
jne 0x423f44
cmp dword [ebp - 0xf0], ebx
jbe 0x423dbc
cmp edi, dword [ebp - 0xf0]
je 0x423dbc
push 0x471e5a
lea ecx, [ebp - 0x1f8]
call fcn.0041be0b
push 0xc354
push 1
lea eax, [ebp - 0x1f8]
lea esi, [ebp - 0x284]
mov byte [ebp - 4], 0x1e
call fcn.0042fe1c
mov byte [ebp - 4], 0x1f
push dword [ebp - 0x2ec]
mov ecx, dword [ebp - 0xf4]
add edi, ecx
push edi
push str.Invalid_downloaded_file_size__d___d
push eax
jmp 0x42402e
cmp dword [ebp - 0x44], ebx
je 0x423dca
push dword [ebp - 0x44]
call fcn.0044fbbd
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x423dd8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x15
call fcn.0041ff02
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
je 0x423e9b
mov eax, dword [ebp - 0x68]
push 0x10
pop esi
cmp dword [ebp - 0x54], esi
jae 0x423e00
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [ebp - 0x54], esi
mov ecx, dword [ebp - 0x68]
jae 0x423e12
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x34]
jae 0x423e1d
lea eax, [ebp - 0x34]
push ecx
push eax
push str.__rename_file__s_to__s
push ebx
call fcn.00441366
mov ecx, dword [ebp - 0x68]
add esp, 0x10
cmp dword [ebp - 0x54], esi
jae 0x423e38
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x34]
jae 0x423e43
lea eax, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
jne 0x423e9b
push 0x471e5a
lea ecx, [ebp - 0x1a4]
call fcn.0041be0b
lea eax, [ebp - 0x1a4]
push eax
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x20
call fcn.0041be2d
mov edi, eax
mov byte [ebp - 4], 0x21
cmp dword [ebp - 0x54], 0x10
mov esi, dword [ebp - 0x68]
jae 0x423e89
lea esi, [ebp - 0x68]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.Cant_rename_downloaded_file_to__s__err_d_
jmp 0x42402d
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x118]
call fcn.004440d0
mov ecx, dword [ebp + 0x14]
push str.filepath
mov byte [ebp - 4], 0x22
call fcn.00446da0
lea ecx, [ebp - 0x118]
push ecx
mov ecx, eax
call fcn.004462a0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0x15
call fcn.00445920
push dword [ebp - 0x2ec]
lea ecx, [ebp - 0x80]
call fcn.00443370
mov ecx, dword [ebp + 0x14]
push str.filesize
mov byte [ebp - 4], 0x23
call fcn.00446da0
lea ecx, [ebp - 0x80]
push ecx
mov ecx, eax
call fcn.004462a0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x15
call fcn.00445920
lea esi, [ebp - 0x368]
call fcn.00405a96
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0041b05c
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.0041ba42
mov byte [ebp + 0x17], 1
jmp 0x423a6e
add edi, dword [ebp - 0x40]
push ebx
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x44]
mov dword [ebp - 0x50], ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp - 0x50]
add dword [ebp + 8], ecx
cmp eax, ebx
jne 0x423fb8
push 0x471e5a
lea ecx, [ebp - 0x1c0]
call fcn.0041be0b
lea eax, [ebp - 0x1c0]
push eax
push 1
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0x1c
call fcn.0041be2d
mov edi, eax
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0x20], 0x10
mov esi, dword [ebp - 0x34]
jae 0x423fa9
lea esi, [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.Cant_save_file__s__err_d_
jmp 0x42402d
mov ecx, dword [esi]
cmp ecx, ebx
mov dword [ebp - 0x1c], ebx
je 0x423fd6
push dword [ebp + 0x18]
mov eax, dword [ebp - 0x40]
push dword [ebp + 0x14]
add dword [esi + 0x10], eax
push dword [ebp + 0x10]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov eax, dword [esi + 8]
call fcn.00406fac
mov dword [ebp - 0x18], ebx
jmp 0x423d41
push 0x471e5a
lea ecx, [ebp - 0x1dc]
call fcn.0041be0b
lea eax, [ebp - 0x1dc]
push eax
push 1
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0x19
call fcn.0041be2d
mov edi, eax
mov byte [ebp - 4], 0x1a
cmp dword [ebp - 0x20], 0x10
mov esi, dword [ebp - 0x34]
jae 0x424020
lea esi, [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.Cant_open_file__s__err_d_
push edi
call fcn.0041b692
add esp, 0x10
mov ecx, eax
call fcn.0041be69
xor ebx, ebx
push ebx
push ebx
jmp 0x4241b1
mov eax, dword [esi + 8]
call fcn.00406fac
cmp dword [esi], ebx
je 0x4240f4
mov eax, dword [esi + 8]
mov ecx, dword [0x48f75c]
push 1
call fcn.00406f4c
pop ecx
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x1c]
call fcn.004258bc
add esp, 0xc
cmp al, bl
jne 0x423b8d
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x424100
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x80]
call fcn.00443370
mov ecx, dword [ebp + 0x10]
push str.downloadFailCode
mov byte [ebp - 4], 0x26
call fcn.00446da0
lea ecx, [ebp - 0x80]
push ecx
mov ecx, eax
call fcn.004462a0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x14
call fcn.00445920
lea esi, [ebp - 0x368]
call fcn.00405a96
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0041b05c
jmp 0x423a5f
call fcn.004522b9
int3