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

Disassembly:
push 0x50c
mov eax, 0x100be909
call fcn.1008b701
mov edi, dword [ebp + 8]
mov ebx, 0xd2
push dword [edi + 0xe8]
push str.StartDownloadTBSElement_begin__retry_count__d_
push ebx
push str.E:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
call fcn.1006a644
add esp, 0x10
call fcn.10018ae4
push 0x100d0a34
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 0x1002258a
mov eax, dword [esi]
jmp 0x1002258c
mov eax, esi
push eax
lea ecx, [ebp - 0x42c]
call fcn.100055e9
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x42c]
cmp dword [eax - 0xc], 0
jne 0x1002260f
push str.StartDownloadTBSElement_server_config_url_is_empty_try_package_default
push ebx
push str.E:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
call fcn.1006a644
add esp, 0xc
mov ecx, edi
call fcn.100221ff
cmp dword [esi + 0x14], 8
jb 0x100225cc
mov ebx, dword [esi]
jmp 0x100225ce
mov ebx, esi
mov ecx, ebx
call fcn.10001546
push eax
push ebx
lea ecx, [ebp - 0x42c]
call fcn.10005bd6
mov eax, dword [ebp - 0x42c]
cmp dword [eax - 0xc], 0
jne 0x1002260a
push str.StartDownloadTBSElement_package_default_url_is_empty
push 0xd2
push str.E:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
call fcn.1006a644
add esp, 0xc
jmp 0x100229d6
mov ebx, 0xd2
cmp dword [esi + 0x14], 8
jb 0x10022617
mov esi, dword [esi]
push esi
push str.StartDownloadTBSElement_url_:_s
push ebx
push str.E:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
call fcn.1006a644
add esp, 0x10
cmp dword [edi + 0xa8], 0
jne 0x10022652
push 0xc8
call fcn.1008ad77
pop ecx
mov ecx, eax
mov dword [ebp - 0x510], eax
call fcn.1001be6d
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.1008df10
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
call fcn.10021ecb
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 0x100226ee
push 0x20a
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.1008df10
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.10005e5d
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0xa8]
mov edx, 0x100f0384
push eax
call fcn.100048d5
cmp dword [ebp - 0x430], 0
pop ecx
je 0x10022835
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 0x100227d3
lea ecx, [ebp - 0x21c]
call fcn.100043dc
test eax, eax
jne 0x100227d3
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 0x100227ca
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x21c]
jmp 0x10022818
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.E:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
call fcn.1006a644
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 0x100228c2
mov esi, dword [edi + 0x1c]
jmp 0x100228bd
mov ecx, dword [esi]
test ecx, ecx
je 0x100228ba
mov eax, dword [ecx]
push 0x12
push ecx
call dword [eax + 0x14]
add esi, 4
cmp esi, dword [edi + 0x20]
jne 0x100228ac
lea ecx, [ebp - 0x50c]
call fcn.1001c3ae
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.100241ea
mov ecx, dword [ebp - 0x518]
push dword [edi + 0xa8]
add ecx, 0xb8
call fcn.1001befa
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x510], esp
push 0x100d1e02
call fcn.1001111d
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x514], esp
push 0x100d2c20
call fcn.1001111d
push 0x7da
mov byte [ebp - 4], 6
call fcn.1001897a
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.1002586e
call fcn.1001897a
push 0
mov esi, eax
call fcn.1009ffdc
mov dword [esi + 0x134], eax
call fcn.1001897a
mov dword [esp], str.StartDownloadTBSElement_end
xor ebx, ebx
push 0xd2
inc ebx
push str.E:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
mov dword [eax + 0xe4], ebx
call fcn.1006a644
add esp, 0xc
lea ecx, [ebp - 0x50c]
call fcn.1001c486
lea ecx, [ebp - 0x434]
call fcn.1002351b
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.1008b6ab
ret 4