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

Disassembly:
mov eax, 0x4684fc
call fcn.00452ab4
sub esp, 0x35c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, 0x472e5a
xor ebx, ebx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00443910
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x48]
push eax
push 0x475288
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 1
call fcn.00446900
lea ecx, [ebp - 0x174]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004454e0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.00445e90
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00445e90
push esi
lea ecx, [ebp - 0x128]
call fcn.00443910
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x128]
push eax
push 0x4737a8
lea eax, [ebp - 0x158]
push eax
mov byte [ebp - 4], 6
call fcn.00446900
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.004454e0
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xa
call fcn.00445e90
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 9
call fcn.00445e90
mov edi, str.fs::DownloadComponentFileAsync_1144
push edi
call fcn.00450e4d
pop ecx
mov dword [ebp - 0x4c], eax
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.004438e0
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push eax
push 0x4756fc
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 0xc
call fcn.00446900
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xa4], 0x10
mov esi, dword [ebp - 0xb8]
jae 0x423dd7
lea esi, [ebp - 0xb8]
mov ecx, eax
call fcn.00445630
push esi
push eax
push edi
push str.___s__comp_id_d__file_s_
push ebx
call fcn.004418d2
add esp, 0x14
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.00445e90
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.00445e90
lea edi, [ebp - 0xbc]
call fcn.0042d841
cmp al, bl
jne 0x423e55
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.0041bdf9
mov byte [ebp + 0x17], bl
push ebx
push 1
lea ecx, [ebp - 0xbc]
call fcn.0041b413
push ebx
push 1
lea ecx, [ebp - 0x174]
call fcn.0041b413
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.00418bb5
add esp, 0xc
push dword [ebp + 8]
lea edi, [ebp - 0x6c]
mov byte [ebp - 4], 0xe
call fcn.00421813
mov eax, edi
push eax
lea ecx, [ebp - 0x38]
call fcn.0041c33e
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 0xf
cmp dword [esi], ebx
je 0x423ef1
lea eax, [ebp - 0x144]
push eax
call fcn.00421914
pop ecx
push eax
lea eax, [ebp - 0xa0]
push str..part_
push eax
mov byte [ebp - 4], 0x10
call fcn.0041b639
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x11
call fcn.0041ae5c
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.0041b413
push ebx
push 1
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0xf
call fcn.0041b413
push dword [ebp + 8]
lea edi, [ebp - 0x38]
call fcn.00421813
mov eax, dword [esi + 0x10]
push 0x472e5a
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x84], eax
mov dword [ebp + 8], ebx
call fcn.0041c1c2
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.0041b413
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], 2
jge 0x424470
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x34]
xor esi, esi
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], ebx
jae 0x423f66
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 0x423f98
cmp edi, 0xffffffff
je 0x423f91
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 0x423fb2
push dword [ebp + 8]
push esi
push str.__unexpected_file_size:__lu_____lu
push ebx
call fcn.004418d2
add esp, 0x10
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
je 0x423fca
mov eax, dword [ebp - 0x2ec]
cmp eax, ebx
je 0x423fca
cmp dword [ebp + 8], eax
jae 0x42419e
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.00424b84
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0x17
call fcn.00424fed
pop ecx
mov byte [ebp - 0x204], 1
call fcn.00424cb6
mov esi, edi
push dword [esi + 0xc]
push str.__connect_time:__d_ms
push ebx
call fcn.004418d2
add esp, 0xc
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0x16
call fcn.00424bef
mov ecx, dword [esi]
cmp ecx, ebx
mov eax, dword [ebp - 0xf4]
mov dword [ebp + 8], eax
je 0x42408c
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 0x4240a4
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x42409d
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4240b0
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 0x42439d
cmp eax, 0xffffffff
je 0x42439d
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.0042581b
cmp al, bl
jne 0x4242fb
cmp dword [ebp - 0xf0], ebx
jbe 0x424173
cmp edi, dword [ebp - 0xf0]
je 0x424173
push 0x472e5a
lea ecx, [ebp - 0x1f8]
call fcn.0041c1c2
push 0xc354
push 1
lea eax, [ebp - 0x1f8]
lea esi, [ebp - 0x284]
mov byte [ebp - 4], 0x1e
call fcn.00430388
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 0x4243e5
cmp dword [ebp - 0x44], ebx
je 0x424181
push dword [ebp - 0x44]
call fcn.0045012d
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x42418f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x15
call fcn.004202b9
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
je 0x424252
mov eax, dword [ebp - 0x68]
push 0x10
pop esi
cmp dword [ebp - 0x54], esi
jae 0x4241b7
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [ebp - 0x54], esi
mov ecx, dword [ebp - 0x68]
jae 0x4241c9
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x34]
jae 0x4241d4
lea eax, [ebp - 0x34]
push ecx
push eax
push str.__rename_file__s_to__s
push ebx
call fcn.004418d2
mov ecx, dword [ebp - 0x68]
add esp, 0x10
cmp dword [ebp - 0x54], esi
jae 0x4241ef
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x34]
jae 0x4241fa
lea eax, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
jne 0x424252
push 0x472e5a
lea ecx, [ebp - 0x1a4]
call fcn.0041c1c2
lea eax, [ebp - 0x1a4]
push eax
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x20
call fcn.0041c1e4
mov edi, eax
mov byte [ebp - 4], 0x21
cmp dword [ebp - 0x54], 0x10
mov esi, dword [ebp - 0x68]
jae 0x424240
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 0x4243e4
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x118]
call fcn.00444640
mov ecx, dword [ebp + 0x14]
push str.filepath
mov byte [ebp - 4], 0x22
call fcn.00447310
lea ecx, [ebp - 0x118]
push ecx
mov ecx, eax
call fcn.00446810
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0x15
call fcn.00445e90
push dword [ebp - 0x2ec]
lea ecx, [ebp - 0x80]
call fcn.004438e0
mov ecx, dword [ebp + 0x14]
push str.filesize
mov byte [ebp - 4], 0x23
call fcn.00447310
lea ecx, [ebp - 0x80]
push ecx
mov ecx, eax
call fcn.00446810
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x15
call fcn.00445e90
lea esi, [ebp - 0x368]
call fcn.00405a96
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0041b413
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0041b413
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.0041bdf9
mov byte [ebp + 0x17], 1
jmp 0x423e25
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 0x42436f
push 0x472e5a
lea ecx, [ebp - 0x1c0]
call fcn.0041c1c2
lea eax, [ebp - 0x1c0]
push eax
push 1
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0x1c
call fcn.0041c1e4
mov edi, eax
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0x20], 0x10
mov esi, dword [ebp - 0x34]
jae 0x424360
lea esi, [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.Cant_save_file__s__err_d_
jmp 0x4243e4
mov ecx, dword [esi]
cmp ecx, ebx
mov dword [ebp - 0x1c], ebx
je 0x42438d
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 0x4240f8
push 0x472e5a
lea ecx, [ebp - 0x1dc]
call fcn.0041c1c2
lea eax, [ebp - 0x1dc]
push eax
push 1
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0x19
call fcn.0041c1e4
mov edi, eax
mov byte [ebp - 4], 0x1a
cmp dword [ebp - 0x20], 0x10
mov esi, dword [ebp - 0x34]
jae 0x4243d7
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.0041ba49
add esp, 0x10
mov ecx, eax
call fcn.0041c220
xor ebx, ebx
push ebx
push ebx
jmp 0x424568
mov eax, dword [esi + 8]
call fcn.00406fac
cmp dword [esi], ebx
je 0x4244ab
mov eax, dword [esi + 8]
mov ecx, dword [0x49075c]
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.00425c73
add esp, 0xc
cmp al, bl
jne 0x423f44
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4244b7
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x80]
call fcn.004438e0
mov ecx, dword [ebp + 0x10]
push str.downloadFailCode
mov byte [ebp - 4], 0x26
call fcn.00447310
lea ecx, [ebp - 0x80]
push ecx
mov ecx, eax
call fcn.00446810
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x14
call fcn.00445e90
lea esi, [ebp - 0x368]
call fcn.00405a96
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0041b413
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0041b413
jmp 0x423e16
call fcn.00452829
int3