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

Disassembly:
mov eax, 0x466b5b
call fcn.00451324
sub esp, 0x34c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, 0x470e4a
xor ebx, ebx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00441bc0
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x48]
push eax
push 0x4731c0
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 1
call fcn.00444bb0
lea ecx, [ebp - 0x168]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00443790
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.00444140
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00444140
push esi
lea ecx, [ebp - 0x120]
call fcn.00441bc0
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x120]
push eax
push 0x471788
lea eax, [ebp - 0x14c]
push eax
mov byte [ebp - 4], 6
call fcn.00444bb0
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00443790
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xa
call fcn.00444140
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 9
call fcn.00444140
mov edi, str.fs::DownloadComponentFileAsync_1115
push edi
call fcn.0044f750
pop ecx
mov dword [ebp - 0x4c], eax
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.00441b90
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push eax
push 0x473634
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 0xc
call fcn.00444bb0
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xa0], 0x10
mov esi, dword [ebp - 0xb4]
jae 0x423023
lea esi, [ebp - 0xb4]
mov ecx, eax
call fcn.004438e0
push esi
push eax
push edi
push str.___s__comp_id_d__file_s_
push ebx
call fcn.0043fb8a
add esp, 0x14
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xc
call fcn.00444140
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.00444140
lea edi, [ebp - 0xb8]
call fcn.0042c86c
cmp al, bl
jne 0x4230a1
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.0041b202
mov byte [ebp + 0x17], bl
push ebx
push 1
lea ecx, [ebp - 0xb8]
call fcn.0041a87c
push ebx
push 1
lea ecx, [ebp - 0x168]
call fcn.0041a87c
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 - 0xb8]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x6c]
push eax
call fcn.0041801e
add esp, 0xc
push dword [ebp + 8]
lea edi, [ebp - 0x6c]
mov byte [ebp - 4], 0xe
call fcn.00420a62
mov eax, edi
push eax
lea ecx, [ebp - 0x38]
call fcn.0041b74c
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 0xf
cmp dword [esi], ebx
je 0x42313d
lea eax, [ebp - 0x13c]
push eax
call fcn.00420b63
pop ecx
push eax
lea eax, [ebp - 0x9c]
push str..part_
push eax
mov byte [ebp - 4], 0x10
call fcn.0041aabf
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x11
call fcn.0041a2c5
push ebx
push 1
lea ecx, [ebp - 0x9c]
call fcn.0041a87c
push ebx
push 1
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0xf
call fcn.0041a87c
push dword [ebp + 8]
lea edi, [ebp - 0x38]
call fcn.00420a62
mov eax, dword [esi + 0x10]
push 0x470e4a
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x80], eax
mov dword [ebp + 8], ebx
call fcn.0041b5d0
push ebx
push 1
lea eax, [ebp - 0x13c]
push eax
push ebx
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x358]
push eax
mov byte [ebp - 4], 0x12
call fcn.00401589
push ebx
push 1
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x14
call fcn.0041a87c
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], 2
jge 0x4236b6
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x34]
xor esi, esi
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], ebx
jae 0x4231af
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 0x4231e1
cmp edi, 0xffffffff
je 0x4231da
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 0x4231fb
push dword [ebp + 8]
push esi
push str.__unexpected_file_size:__lu_____lu
push ebx
call fcn.0043fb8a
add esp, 0x10
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
je 0x423213
mov eax, dword [ebp - 0x2dc]
cmp eax, ebx
je 0x423213
cmp dword [ebp + 8], eax
jae 0x4233e4
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xd8], 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 - 0xec], eax
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x228]
call fcn.00423dca
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0x17
call fcn.00424233
pop ecx
mov byte [ebp - 0x1f8], 1
call fcn.00423efc
mov esi, edi
push dword [esi + 0xc]
push str.__connect_time:__d_ms
push ebx
call fcn.0043fb8a
add esp, 0xc
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0x16
call fcn.00423e35
mov ecx, dword [esi]
cmp ecx, ebx
mov eax, dword [ebp - 0xec]
mov dword [ebp + 8], eax
je 0x4232d2
push dword [ebp + 0x18]
mov edx, dword [ebp - 0x80]
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 0x4232ea
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4232e3
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4232f6
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 0x4235e3
cmp eax, 0xffffffff
je 0x4235e3
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 - 0xe8]
lea eax, [ebp - 0x44]
push edi
push eax
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x1c], ebx
call fcn.00424a5b
cmp al, bl
jne 0x423541
cmp dword [ebp - 0xe8], ebx
jbe 0x4233b9
cmp edi, dword [ebp - 0xe8]
je 0x4233b9
push 0x470e4a
lea ecx, [ebp - 0x1ec]
call fcn.0041b5d0
push 0xc354
push 1
lea eax, [ebp - 0x1ec]
lea esi, [ebp - 0x278]
mov byte [ebp - 4], 0x1e
call fcn.0042ebc6
mov byte [ebp - 4], 0x1f
push dword [ebp - 0x2dc]
mov ecx, dword [ebp - 0xec]
add edi, ecx
push edi
push str.Invalid_downloaded_file_size__d___d
push eax
jmp 0x42362b
cmp dword [ebp - 0x44], ebx
je 0x4233c7
push dword [ebp - 0x44]
call fcn.0044e99d
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x4233d5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 0x15
call fcn.0041f6bb
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
je 0x423498
mov eax, dword [ebp - 0x68]
push 0x10
pop esi
cmp dword [ebp - 0x54], esi
jae 0x4233fd
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [ebp - 0x54], esi
mov ecx, dword [ebp - 0x68]
jae 0x42340f
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x34]
jae 0x42341a
lea eax, [ebp - 0x34]
push ecx
push eax
push str.__rename_file__s_to__s
push ebx
call fcn.0043fb8a
mov ecx, dword [ebp - 0x68]
add esp, 0x10
cmp dword [ebp - 0x54], esi
jae 0x423435
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x34]
jae 0x423440
lea eax, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
jne 0x423498
push 0x470e4a
lea ecx, [ebp - 0x198]
call fcn.0041b5d0
lea eax, [ebp - 0x198]
push eax
push 1
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0x20
call fcn.0041b5f2
mov edi, eax
mov byte [ebp - 4], 0x21
cmp dword [ebp - 0x54], 0x10
mov esi, dword [ebp - 0x68]
jae 0x423486
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 0x42362a
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x110]
call fcn.004428f0
mov ecx, dword [ebp + 0x14]
push str.filepath
mov byte [ebp - 4], 0x22
call fcn.004455c0
lea ecx, [ebp - 0x110]
push ecx
mov ecx, eax
call fcn.00444ac0
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0x15
call fcn.00444140
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0x7c]
call fcn.00441b90
mov ecx, dword [ebp + 0x14]
push str.filesize
mov byte [ebp - 4], 0x23
call fcn.004455c0
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.00444ac0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x15
call fcn.00444140
lea esi, [ebp - 0x358]
call fcn.00405532
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0041a87c
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0041a87c
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.0041b202
mov byte [ebp + 0x17], 1
jmp 0x423071
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 0x4235b5
push 0x470e4a
lea ecx, [ebp - 0x1b4]
call fcn.0041b5d0
lea eax, [ebp - 0x1b4]
push eax
push 1
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x1c
call fcn.0041b5f2
mov edi, eax
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0x20], 0x10
mov esi, dword [ebp - 0x34]
jae 0x4235a6
lea esi, [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.Cant_save_file__s__err_d_
jmp 0x42362a
mov ecx, dword [esi]
cmp ecx, ebx
mov dword [ebp - 0x1c], ebx
je 0x4235d3
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.004069f6
mov dword [ebp - 0x18], ebx
jmp 0x42333e
push 0x470e4a
lea ecx, [ebp - 0x1d0]
call fcn.0041b5d0
lea eax, [ebp - 0x1d0]
push eax
push 1
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0x19
call fcn.0041b5f2
mov edi, eax
mov byte [ebp - 4], 0x1a
cmp dword [ebp - 0x20], 0x10
mov esi, dword [ebp - 0x34]
jae 0x42361d
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.0041aecf
add esp, 0x10
mov ecx, eax
call fcn.0041b62e
xor ebx, ebx
push ebx
push ebx
jmp 0x4237ae
mov eax, dword [esi + 8]
call fcn.004069f6
cmp dword [esi], ebx
je 0x4236f1
mov eax, dword [esi + 8]
mov ecx, dword [0x48e6dc]
push 1
call fcn.00406996
pop ecx
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x1c]
call fcn.00424eb3
add esp, 0xc
cmp al, bl
jne 0x42318d
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4236fd
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x7c]
call fcn.00441b90
mov ecx, dword [ebp + 0x10]
push str.downloadFailCode
mov byte [ebp - 4], 0x26
call fcn.004455c0
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.00444ac0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x14
call fcn.00444140
lea esi, [ebp - 0x358]
call fcn.00405532
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0041a87c
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0041a87c
jmp 0x423062
call fcn.00451099
int3