Function at 0x409ed0
Capabilities:
Check if file exists
Create thread
Delete file
Get common file path
Get file attributes
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436b30
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x451008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x238], 0
test ebx, ebx
je 0x409f8a
push 0xa
mov dword [ebp - 0x22c], 0
mov esi, 4
call fcn.0041b26a
add esp, 4
mov edi, eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], edi
push 0xffffffffffffffff
push str..exe
push 5
push edi
push eax
call fcn.00426d70
xor ecx, ecx
mov dword [ebp - 0x22c], 1
add esp, 0x14
test eax, eax
lea eax, [ebp - 0x234]
cmovne esi, ecx
mov ecx, ebx
mov dword [ebp - 0x230], esi
push eax
call fcn.0040ecb0
test al, al
je 0x409f90
mov byte [ebp - 0x219], 1
jmp 0x409f97
mov edi, dword [ebp - 0x234]
mov byte [ebp - 0x219], 0
test byte [ebp - 0x22c], 1
je 0x409faf
test edi, edi
je 0x409faf
push 2
push edi
call fcn.0041aef0
add esp, 8
cmp byte [ebp - 0x219], 0
je 0x40a844
mov ecx, dword [ebx]
or edx, 0xffffffff
test ecx, ecx
je 0x409fec
mov eax, dword [ebx + 4]
test eax, eax
je 0x409fec
lea eax, [ecx + eax*2]
cmp eax, ecx
jb 0x409fef
cmp word [eax], 0x2f
je 0x409fe0
sub eax, 2
cmp eax, ecx
jae 0x409fd3
cmp eax, ecx
jb 0x409fef
mov edx, eax
sub edx, ecx
sar edx, 1
jmp 0x409fef
or edx, 0xffffffff
push 0xffffffffffffffff
lea eax, [edx + 1]
mov ecx, ebx
push eax
call fcn.0040e4d0
mov esi, eax
xor edi, edi
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40a044
push 8
call fcn.0041ab28
add esp, 4
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0xb
push ecx
mov ecx, eax
call fcn.0040d2b0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
push 0xc
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x230], 5
call fcn.0041b26a
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x234], ecx
push 0xffffffffffffffff
push str._s_s
push eax
push ecx
lea eax, [ebp - 0x22c]
push eax
call fcn.00426d70
mov ecx, dword [ebp - 0x230]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x230], ecx
push esi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 0x10
push edi
push eax
call fcn.0040d840
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x234]
add esp, 0xc
mov dword [ebp - 0x228], ebx
test eax, eax
je 0x40a0ec
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x234], 0
mov ecx, esi
mov dword [ebp - 0x230], 0
call fcn.00412320
test eax, eax
je 0x40a108
mov ecx, esi
call fcn.004125a0
test esi, esi
je 0x40a135
mov eax, dword [esi]
test eax, eax
je 0x40a123
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0041aef0
add esp, 8
test edi, edi
je 0x40a162
mov eax, dword [edi]
test eax, eax
je 0x40a150
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0041aef0
add esp, 8
push ebx
lea ecx, [ebp - 0x224]
call fcn.0040d340
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0x11
call fcn.0040e6a0
mov esi, eax
mov byte [ebp - 0x219], 1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
movzx ecx, byte [ebp - 0x219]
xor edx, edx
cmp eax, 0xffffffff
push esi
cmove ecx, edx
mov dword [ebp - 0x22c], ecx
call fcn.0041b273
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40a1ca
push 2
push eax
call fcn.0041aef0
add esp, 8
cmp byte [ebp - 0x22c], 0
je 0x40a1f6
test ebx, ebx
je 0x40a1f6
mov ecx, ebx
call fcn.0040e6a0
mov esi, eax
test esi, esi
je 0x40a1f6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0041aef0
add esp, 8
call fcn.00412700
call fcn.00411d30
push 4
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], edx
call fcn.0041ab28
mov edi, eax
add esp, 4
mov dword [ebp - 0x22c], edi
push 4
mov dword [ebp - 4], 0x12
call fcn.0041ab28
add esp, 4
mov dword [ebp - 0x220], eax
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.004187b0
mov esi, eax
mov byte [ebp - 4], 0x12
push ecx
mov ecx, dword [esi]
call fcn.00418cc0
mov dword [edi], esi
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x40a2c9
push 0x78
call fcn.0041ab28
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0x14
mov ecx, eax
push dword [ebp - 0x22c]
push ebx
push dword [ebp - 0x23c]
call fcn.00415700
mov edi, eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40a2c9
mov eax, dword [edi + 4]
mov byte [edi + 9], 1
test eax, eax
jne 0x40a2c2
push eax
push 4
push edi
push 0x4183b0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [edi + 0xc]
mov dword [edi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [edi + 4]
test eax, eax
je 0x40a2c9
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 0x244]
push 0x1f4
call esi
call fcn.00411d30
mov ecx, eax
mov eax, dword [edi + 0x70]
sub ecx, ebx
sbb edx, dword [ebp - 0x240]
cmp eax, 5
je 0x40a304
cmp eax, 6
je 0x40a301
test edx, edx
jne 0x40a301
cmp ecx, 0x1e
jb 0x40a2d5
cmp eax, 5
mov ebx, dword [ebp - 0x228]
jne 0x40a599
push ebx
lea ecx, [ebp - 0x224]
call fcn.0040d340
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0x15
call fcn.00411560
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x240], esi
test eax, eax
je 0x40a352
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x228], 0
test esi, esi
je 0x40a528
push 0xa
mov esi, 4
call fcn.0041b26a
add esp, 4
mov dword [ebp - 0x224], eax
push 0xffffffffffffffff
push str.0.00
push 5
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00426d70
xor ecx, ecx
add esp, 0x14
test eax, eax
lea eax, [ebp - 0x224]
cmovne esi, ecx
mov dword [ebp - 0x220], esi
mov esi, dword [ebp - 0x240]
mov ecx, esi
push eax
call fcn.0040eab0
mov byte [ebp - 0x219], al
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40a3ce
push 2
push eax
call fcn.0041aef0
add esp, 8
cmp byte [ebp - 0x219], 0
je 0x40a46b
push 0x90
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0x47
call fcn.0041b26a
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x220]
inc eax
mov dword [ebp - 0x224], ecx
push 0xffffffffffffffff
push str.preinstall_options.exe_version_was_0.00_so_skipping_showing_the_offer_r_n
push eax
push ecx
lea eax, [ebp - 0x228]
push eax
call fcn.00426d70
mov ecx, dword [ebp - 0x220]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0x16
push eax
push 0xca
push str.downloadFile
push str.d:jenkinsworkspaceclient3.exe.iwininstallerugmtooliwininstallerexe_srcmain.cpp
push edx
call fcn.00416c20
add esp, 0x14
jmp 0x40a4ff
mov ecx, ebx
call fcn.0040d750
push 0x6a
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0x34
call fcn.0041b26a
mov ecx, dword [ebp - 0x220]
add esp, 4
inc ecx
mov dword [ebp - 0x224], eax
push 0xffffffffffffffff
push str.Pre_install_offer_exe_version__s_download_complete_r_n
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00426d70
mov ecx, dword [ebp - 0x220]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x220], ecx
push esi
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0x17
push eax
push 0xcf
push str.downloadFile
push str.d:jenkinsworkspaceclient3.exe.iwininstallerugmtooliwininstallerexe_srcmain.cpp
push edx
call fcn.00416c20
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40a51b
push 2
push eax
call fcn.0041aef0
add esp, 8
push ecx
mov ecx, esi
call fcn.00409b80
jmp 0x40a6df
push 0xac
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0x55
call fcn.0041b26a
mov ecx, dword [ebp - 0x220]
add esp, 4
inc ecx
mov dword [ebp - 0x224], eax
push 0xffffffffffffffff
push str.preinstall_options.exe_version_could_not_be_retrieved_so_skipping_showing_the_offer_r_n
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00426d70
mov ecx, dword [ebp - 0x220]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0x18
push eax
push 0xd5
jmp 0x40a6af
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
cmp eax, 6
je 0x40a650
push 0x56
mov dword [ebp - 0x220], 0x2a
call fcn.0041b26a
mov ecx, dword [ebp - 0x220]
add esp, 4
inc ecx
mov dword [ebp - 0x224], eax
push 0xffffffffffffffff
push str.Pre_install_offer_exe_download_timed_out_r_n
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00426d70
mov ecx, dword [ebp - 0x220]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0x19
push eax
push 0xda
push str.downloadFile
push str.d:jenkinsworkspaceclient3.exe.iwininstallerugmtooliwininstallerexe_srcmain.cpp
push edx
call fcn.00416c20
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40a644
push 2
push eax
call fcn.0041aef0
add esp, 8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
jmp 0x40a6df
push 0x50
mov dword [ebp - 0x220], 0x27
call fcn.0041b26a
mov ecx, dword [ebp - 0x220]
add esp, 4
inc ecx
mov dword [ebp - 0x224], eax
push 0xffffffffffffffff
push str.Pre_install_offer_exe_download_failed_r_n
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00426d70
mov ecx, dword [ebp - 0x220]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0x1a
push eax
push 0xe0
push str.downloadFile
push str.d:jenkinsworkspaceclient3.exe.iwininstallerugmtooliwininstallerexe_srcmain.cpp
push 0
call fcn.00416c20
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40a6df
push 2
push eax
call fcn.0041aef0
add esp, 8
mov eax, dword [edi + 4]
mov dword [edi], vtable.OFileDownload.0
test eax, eax
je 0x40a71b
cmp byte [edi + 9], 0
je 0x40a710
lea ecx, [ebp - 0x23c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40a710
cmp dword [ebp - 0x23c], 0x103
jne 0x40a71b
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.004158d0
mov eax, dword [edi + 0x50]
test eax, eax
je 0x40a73b
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov eax, dword [edi + 0x48]
test eax, eax
je 0x40a75b
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov eax, dword [edi + 0x38]
test eax, eax
je 0x40a77b
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov eax, dword [edi + 0x20]
test eax, eax
je 0x40a79b
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x40a7bb
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [edi + 0x18], 0
mov ecx, edi
mov dword [edi + 0x1c], 0
call fcn.00418460
push 0x78
push edi
call fcn.0041aef0
push 0
push 0xe5
push str.downloadFile
push str.d:jenkinsworkspaceclient3.exe.iwininstallerugmtooliwininstallerexe_srcmain.cpp
push 0
call fcn.00416c20
mov esi, dword [ebp - 0x22c]
add esp, 0x1c
mov ecx, dword [esi]
test ecx, ecx
je 0x40a804
push ecx
call fcn.00417d00
mov dword [esi], 0
push 4
push esi
call fcn.0041aef0
add esp, 8
test ebx, ebx
je 0x40a83c
mov eax, dword [ebx]
test eax, eax
je 0x40a82a
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0041aef0
add esp, 8
mov eax, dword [ebp - 0x238]
jmp 0x40a846
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ab17
mov esp, ebp
pop ebp
ret