Function at 0x10022a16
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push 0x50c
mov eax, 0x100bfab5
call fcn.1008c851
mov edi, dword [ebp + 8]
mov ebx, 0xd2
push dword [edi + 0xe8]
push str.StartDownloadTBSElement_begin__retry_count__d_
push ebx
push str.D:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
call fcn.1006b794
add esp, 0x10
call fcn.10018b84
push 0x100d2a54
lea esi, [edi + 0xb4]
push esi
lea ecx, [eax + 4]
mov eax, dword [ecx]
push str.tbsUrl
push ecx
call dword [eax + 0xc]
and dword [ebp - 0x42c], 0
cmp dword [esi + 0x14], 8
jb 0x10022a76
mov eax, dword [esi]
jmp 0x10022a78
mov eax, esi
push eax
lea ecx, [ebp - 0x42c]
call fcn.1000564f
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x42c]
cmp dword [eax - 0xc], 0
jne 0x10022afb
push str.StartDownloadTBSElement_server_config_url_is_empty_try_package_default
push ebx
push str.D:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
call fcn.1006b794
add esp, 0xc
mov ecx, edi
call fcn.100226eb
cmp dword [esi + 0x14], 8
jb 0x10022ab8
mov ebx, dword [esi]
jmp 0x10022aba
mov ebx, esi
mov ecx, ebx
call fcn.10001556
push eax
push ebx
lea ecx, [ebp - 0x42c]
call fcn.10005c3c
mov eax, dword [ebp - 0x42c]
cmp dword [eax - 0xc], 0
jne 0x10022af6
push str.StartDownloadTBSElement_package_default_url_is_empty
push 0xd2
push str.D:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
call fcn.1006b794
add esp, 0xc
jmp 0x10022ec2
mov ebx, 0xd2
cmp dword [esi + 0x14], 8
jb 0x10022b03
mov esi, dword [esi]
push esi
push str.StartDownloadTBSElement_url_:_s
push ebx
push str.D:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
call fcn.1006b794
add esp, 0x10
cmp dword [edi + 0xa8], 0
jne 0x10022b3e
push 0xc8
call fcn.1008bec7
pop ecx
mov ecx, eax
mov dword [ebp - 0x510], eax
call fcn.1001c359
mov dword [edi + 0xa8], eax
push dword [ebp - 0x42c]
call fcn.10001a48
pop ecx
mov ecx, dword [edi + 0xa8]
push eax
push dword [ebp - 0x42c]
call fcn.10001ddf
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1008f060
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
call fcn.100223b7
xor eax, eax
mov byte [ebp - 4], 1
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp - 0x43c], eax
jne 0x10022bda
push 0x20a
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.1008f060
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push 0x104
call ebx
lea eax, [ebp - 0x428]
push eax
call fcn.10001a48
pop ecx
push eax
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x44c]
call fcn.10001ddf
inc esi
xor eax, eax
push eax
push eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
call fcn.10005ec3
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0xa8]
mov edx, 0x100f2404
push eax
call fcn.10004936
cmp dword [ebp - 0x430], 0
pop ecx
je 0x10022d21
mov ecx, str...PluginsPluginsSetupBak_
test esi, esi
mov eax, str.PluginsPluginsSetupBak_
cmove eax, ecx
lea ecx, [ebp - 0x464]
push eax
call fcn.100028c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x464]
cmp dword [ebp - 0x450], 8
lea eax, [ebp - 0x44c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmovae ecx, dword [ebp - 0x464]
cmp dword [ebp - 0x438], 8
push ecx
cmovae eax, dword [ebp - 0x44c]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10022cbf
lea ecx, [ebp - 0x21c]
call fcn.1000443d
test eax, eax
jne 0x10022cbf
lea eax, [ebp - 0x21c]
push eax
push 0x104
call ebx
mov eax, dword [ebp - 0x434]
mov eax, dword [eax + 4]
add eax, 8
cmp dword [eax + 0x14], 8
jb 0x10022cb6
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x21c]
jmp 0x10022d04
mov eax, dword [ebp - 0x434]
lea ecx, [ebp - 0x464]
push 0xffffffffffffffff
push 0
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10002aa5
cmp dword [ebp - 0x450], 8
lea ecx, [ebp - 0x464]
lea eax, [ebp - 0x44c]
cmovae ecx, dword [ebp - 0x464]
cmp dword [ebp - 0x438], 8
push ecx
cmovae eax, dword [ebp - 0x44c]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
push 0
push 1
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 2
call fcn.10001f53
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x21c]
push eax
push str.StartDownloadTBSElement_file_s
push 0xd2
push str.D:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
call fcn.1006b794
mov esi, dword [edi + 0xa8]
lea eax, [ebp - 0x21c]
push eax
call fcn.10001a48
add esp, 0x14
lea ecx, [esi + 0x18]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10001ddf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x18]
lea ebx, [edi + 0xac]
mov dword [edi + 0x128], eax
push ebx
push dword [edi + 0xa8]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jne 0x10022dae
mov esi, dword [edi + 0x1c]
jmp 0x10022da9
mov ecx, dword [esi]
test ecx, ecx
je 0x10022da6
mov eax, dword [ecx]
push 0x12
push ecx
call dword [eax + 0x14]
add esi, 4
cmp esi, dword [edi + 0x20]
jne 0x10022d98
lea ecx, [ebp - 0x50c]
call fcn.1001c89a
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x508], 0x63
call fcn.10001a48
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x4e4]
call fcn.10001ddf
mov eax, dword [ebx]
lea ecx, [edi + 0x10]
mov dword [ebp - 0x50c], eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.100246db
mov ecx, dword [ebp - 0x518]
push dword [edi + 0xa8]
add ecx, 0xb8
call fcn.1001c3e6
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x510], esp
push 0x100d3e22
call fcn.100111cd
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x514], esp
push 0x100d4c40
call fcn.100111cd
push 0x7da
mov byte [ebp - 4], 6
call fcn.10018a1a
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.10025d5f
call fcn.10018a1a
push 0
mov esi, eax
call fcn.100a112c
mov dword [esi + 0x134], eax
call fcn.10018a1a
mov dword [esp], str.StartDownloadTBSElement_end
xor ebx, ebx
push 0xd2
inc ebx
push str.D:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
mov dword [eax + 0xe4], ebx
call fcn.1006b794
add esp, 0xc
lea ecx, [ebp - 0x50c]
call fcn.1001c972
lea ecx, [ebp - 0x434]
call fcn.10023a07
push 0
push ebx
lea ecx, [ebp - 0x44c]
call fcn.10001f53
mov ecx, dword [ebp - 0x42c]
lea ecx, [ecx - 0x10]
call fcn.100018f3
xor eax, eax
call fcn.1008c7fb
ret 4