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

Disassembly:
mov eax, 0x45fdf1
call fcn.0044b154
sub esp, 0x324
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, 0x468d4a
xor ebx, ebx
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0043c5d0
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
push 0x46ae34
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 1
call fcn.0043f5c0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0043e1a0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.0043eb50
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.0043eb50
push esi
lea ecx, [ebp - 0xe8]
call fcn.0043c5d0
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0xe8]
push eax
push 0x469640
lea eax, [ebp - 0x124]
push eax
mov byte [ebp - 4], 6
call fcn.0043f5c0
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0043e1a0
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0xa
call fcn.0043eb50
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 9
call fcn.0043eb50
mov edi, str.fs::DownloadComponentFileAsync_1069
push edi
call fcn.00449520
pop ecx
mov dword [ebp - 0x3c], eax
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xb
call fcn.0043c5a0
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x50]
push eax
push 0x46b2b0
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xc
call fcn.0043f5c0
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x9c], 0x10
mov esi, dword [ebp - 0xb0]
jae 0x420693
lea esi, [ebp - 0xb0]
mov ecx, eax
call fcn.0043e2f0
push esi
push eax
push edi
push str.___s__comp_id_d__file_s_
push ebx
call fcn.0043a6e3
add esp, 0x14
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xc
call fcn.0043eb50
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xb
call fcn.0043eb50
lea edi, [ebp - 0xb4]
call fcn.0042964a
cmp al, bl
jne 0x420714
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.00419c15
mov byte [ebp + 0x17], bl
push ebx
push 1
lea ecx, [ebp - 0xb4]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0x140]
call fcn.004192fd
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 - 0xb4]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x84]
push eax
call fcn.00416a8f
add esp, 0xc
push dword [ebp + 8]
lea edi, [ebp - 0x84]
mov byte [ebp - 4], 0xe
call fcn.0041e491
mov eax, edi
push eax
lea ecx, [ebp - 0x38]
call fcn.0041a15f
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 0xf
cmp dword [esi], ebx
je 0x4207b6
lea eax, [ebp - 0x114]
push eax
call fcn.0041e592
pop ecx
push eax
lea eax, [ebp - 0xd0]
push str..part_
push eax
mov byte [ebp - 4], 0x10
call fcn.00419572
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x11
call fcn.00418dd5
push ebx
push 1
lea ecx, [ebp - 0xd0]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xf
call fcn.004192fd
push dword [ebp + 8]
lea edi, [ebp - 0x38]
call fcn.0041e491
mov eax, dword [esi + 0x10]
push 0x468d4a
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x98], eax
mov dword [ebp + 8], ebx
call fcn.00419fe3
push ebx
push 1
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x330]
push eax
mov byte [ebp - 4], 0x12
call fcn.00401589
push ebx
push 1
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x14
call fcn.004192fd
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], 3
jge 0x420d08
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x34]
xor esi, esi
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], ebx
jae 0x42082b
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 0x42085d
cmp edi, 0xffffffff
je 0x420856
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 0x420877
push dword [ebp + 8]
push esi
push str.__unexpected_file_size:__lu_____lu
push ebx
call fcn.0043a6e3
add esp, 0x10
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
je 0x42088f
mov eax, dword [ebp - 0x2b4]
cmp eax, ebx
je 0x42088f
cmp dword [ebp + 8], eax
jae 0x420a29
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 - 0x200]
call fcn.0042140a
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x17
call fcn.00421890
pop ecx
mov byte [ebp - 0x1d0], 1
call fcn.0042153c
mov esi, edi
push dword [esi + 0xc]
push str.__connect_time:__d_ms
push ebx
call fcn.0043a6e3
add esp, 0xc
lea eax, [ebp - 0x200]
mov byte [ebp - 4], 0x16
call fcn.00421475
mov ecx, dword [esi]
cmp ecx, ebx
mov eax, dword [ebp - 0x5c]
mov dword [ebp + 8], eax
je 0x420924
push dword [ebp + 0x18]
mov edx, dword [ebp - 0x98]
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 0x42093c
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x420935
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x420948
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 0x420c35
cmp eax, 0xffffffff
je 0x420c35
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 - 0x40], ebx
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x58]
push edi
push dword [ebp - 0x60]
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x1c], ebx
call fcn.00421eb7
cmp al, bl
pop ecx
pop ecx
jne 0x420b95
cmp dword [ebp - 0x58], ebx
jbe 0x420a01
cmp edi, dword [ebp - 0x58]
je 0x420a01
push 0x468d4a
lea ecx, [ebp - 0x170]
call fcn.00419fe3
push 0xc354
push 1
lea eax, [ebp - 0x170]
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], 0x1e
call fcn.0042b98e
mov byte [ebp - 4], 0x1f
push dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x5c]
add edi, ecx
push edi
push str.Invalid_downloaded_file_size__d___d
push eax
jmp 0x420c7d
cmp dword [ebp - 0x4c], ebx
je 0x420a0f
push dword [ebp - 0x4c]
call fcn.0044876d
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x420a1d
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 0x15
call fcn.0041da43
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
je 0x420add
mov eax, dword [ebp - 0x80]
push 0x10
pop esi
cmp dword [ebp - 0x6c], esi
jae 0x420a42
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [ebp - 0x6c], esi
mov ecx, dword [ebp - 0x80]
jae 0x420a54
lea ecx, [ebp - 0x80]
cmp dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x34]
jae 0x420a5f
lea eax, [ebp - 0x34]
push ecx
push eax
push str.__rename_file__s_to__s
push ebx
call fcn.0043a6e3
mov ecx, dword [ebp - 0x80]
add esp, 0x10
cmp dword [ebp - 0x6c], esi
jae 0x420a7a
lea ecx, [ebp - 0x80]
cmp dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x34]
jae 0x420a85
lea eax, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
jne 0x420add
push 0x468d4a
lea ecx, [ebp - 0x18c]
call fcn.00419fe3
lea eax, [ebp - 0x18c]
push eax
push 1
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x20
call fcn.0041a005
mov edi, eax
mov byte [ebp - 4], 0x21
cmp dword [ebp - 0x6c], 0x10
mov esi, dword [ebp - 0x80]
jae 0x420acb
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 0x420c7c
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0043d300
mov ecx, dword [ebp + 0x14]
push str.filepath
mov byte [ebp - 4], 0x22
call fcn.0043ffd0
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, eax
call fcn.0043f4d0
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0x15
call fcn.0043eb50
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x94]
call fcn.0043c5a0
mov ecx, dword [ebp + 0x14]
push str.filesize
mov byte [ebp - 4], 0x23
call fcn.0043ffd0
lea ecx, [ebp - 0x94]
push ecx
mov ecx, eax
call fcn.0043f4d0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x15
call fcn.0043eb50
lea esi, [ebp - 0x330]
call fcn.00404c8c
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.004192fd
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.00419c15
mov byte [ebp + 0x17], 1
jmp 0x4206e4
mov edi, dword [ebp - 0x48]
add dword [ebp - 0x40], edi
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0x4c]
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x14]
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 0x420c0a
push 0x468d4a
lea ecx, [ebp - 0x1a8]
call fcn.00419fe3
lea eax, [ebp - 0x1a8]
push eax
push 1
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x1c
call fcn.0041a005
mov edi, eax
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0x20], 0x10
mov esi, dword [ebp - 0x34]
jae 0x420bfb
lea esi, [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.Cant_save_file__s__err_d_
jmp 0x420c7c
mov ecx, dword [esi]
cmp ecx, ebx
mov dword [ebp - 0x1c], ebx
je 0x420c25
push dword [ebp + 0x18]
add dword [esi + 0x10], edi
push dword [ebp + 0x14]
mov eax, dword [ecx]
push dword [ebp + 0x10]
push esi
call dword [eax + 4]
mov eax, dword [esi + 8]
call fcn.00406105
mov dword [ebp - 0x18], ebx
jmp 0x420991
push 0x468d4a
lea ecx, [ebp - 0x1c4]
call fcn.00419fe3
lea eax, [ebp - 0x1c4]
push eax
push 1
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 0x19
call fcn.0041a005
mov edi, eax
mov byte [ebp - 4], 0x1a
cmp dword [ebp - 0x20], 0x10
mov esi, dword [ebp - 0x34]
jae 0x420c6f
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.00419950
add esp, 0x10
mov ecx, eax
call fcn.0041a041
xor ebx, ebx
push ebx
push ebx
jmp 0x420e0c
mov eax, dword [esi + 8]
call fcn.00406105
cmp dword [esi], ebx
je 0x420d43
mov eax, dword [esi + 8]
mov ecx, dword [0x48453c]
push 1
call fcn.004060a5
pop ecx
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x1c]
call fcn.00422023
add esp, 0xc
cmp al, bl
jne 0x420809
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x420d4f
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x94]
call fcn.0043c5a0
mov ecx, dword [ebp + 0x10]
push str.downloadFailCode
mov byte [ebp - 4], 0x26
call fcn.0043ffd0
lea ecx, [ebp - 0x94]
push ecx
mov ecx, eax
call fcn.0043f4d0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x14
call fcn.0043eb50
lea esi, [ebp - 0x330]
call fcn.00404c8c
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.004192fd
jmp 0x4206d5
call fcn.0044ad31
int3