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

Disassembly:
push 0x50c
mov eax, 0x100bee29
call fcn.1008bbf4
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.1006ab44
add esp, 0x10
call fcn.10018b24
push 0x100d1a34
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 0x100225c9
mov eax, dword [esi]
jmp 0x100225cb
mov eax, esi
push eax
lea ecx, [ebp - 0x42c]
call fcn.1000563a
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x42c]
cmp dword [eax - 0xc], 0
jne 0x1002264e
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.1006ab44
add esp, 0xc
mov ecx, edi
call fcn.1002223e
cmp dword [esi + 0x14], 8
jb 0x1002260b
mov ebx, dword [esi]
jmp 0x1002260d
mov ebx, esi
mov ecx, ebx
call fcn.10001546
push eax
push ebx
lea ecx, [ebp - 0x42c]
call fcn.10005c27
mov eax, dword [ebp - 0x42c]
cmp dword [eax - 0xc], 0
jne 0x10022649
push str.StartDownloadTBSElement_package_default_url_is_empty
push 0xd2
push str.D:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
call fcn.1006ab44
add esp, 0xc
jmp 0x10022a15
mov ebx, 0xd2
cmp dword [esi + 0x14], 8
jb 0x10022656
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.1006ab44
add esp, 0x10
cmp dword [edi + 0xa8], 0
jne 0x10022691
push 0xc8
call fcn.1008b26a
pop ecx
mov ecx, eax
mov dword [ebp - 0x510], eax
call fcn.1001beaa
mov dword [edi + 0xa8], eax
push dword [ebp - 0x42c]
call fcn.10001a38
pop ecx
mov ecx, dword [edi + 0xa8]
push eax
push dword [ebp - 0x42c]
call fcn.10001dcf
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1008e420
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
call fcn.10021f0a
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 0x1002272d
push 0x20a
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.1008e420
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push 0x104
call ebx
lea eax, [ebp - 0x428]
push eax
call fcn.10001a38
pop ecx
push eax
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x44c]
call fcn.10001dcf
inc esi
xor eax, eax
push eax
push eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
call fcn.10005eae
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0xa8]
mov edx, 0x100f1394
push eax
call fcn.10004926
cmp dword [ebp - 0x430], 0
pop ecx
je 0x10022874
mov ecx, str...PluginsPluginsSetupBak_
test esi, esi
mov eax, str.PluginsPluginsSetupBak_
cmove eax, ecx
lea ecx, [ebp - 0x464]
push eax
call fcn.100028b0
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 0x10022812
lea ecx, [ebp - 0x21c]
call fcn.1000442d
test eax, eax
jne 0x10022812
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 0x10022809
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x21c]
jmp 0x10022857
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.10002a95
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.10001f43
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.1006ab44
mov esi, dword [edi + 0xa8]
lea eax, [ebp - 0x21c]
push eax
call fcn.10001a38
add esp, 0x14
lea ecx, [esi + 0x18]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10001dcf
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 0x10022901
mov esi, dword [edi + 0x1c]
jmp 0x100228fc
mov ecx, dword [esi]
test ecx, ecx
je 0x100228f9
mov eax, dword [ecx]
push 0x12
push ecx
call dword [eax + 0x14]
add esi, 4
cmp esi, dword [edi + 0x20]
jne 0x100228eb
lea ecx, [ebp - 0x50c]
call fcn.1001c3eb
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x508], 0x63
call fcn.10001a38
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x4e4]
call fcn.10001dcf
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.1002422e
mov ecx, dword [ebp - 0x518]
push dword [edi + 0xa8]
add ecx, 0xb8
call fcn.1001bf37
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x510], esp
push 0x100d2e02
call fcn.1001116d
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x514], esp
push 0x100d3c20
call fcn.1001116d
push 0x7da
mov byte [ebp - 4], 6
call fcn.100189ba
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.100258b2
call fcn.100189ba
push 0
mov esi, eax
call fcn.100a04f1
mov dword [esi + 0x134], eax
call fcn.100189ba
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.1006ab44
add esp, 0xc
lea ecx, [ebp - 0x50c]
call fcn.1001c4c3
lea ecx, [ebp - 0x434]
call fcn.1002355a
push 0
push ebx
lea ecx, [ebp - 0x44c]
call fcn.10001f43
mov ecx, dword [ebp - 0x42c]
lea ecx, [ecx - 0x10]
call fcn.100018e3
xor eax, eax
call fcn.1008bb9e
ret 4