Function at 0x442240
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c37f3
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x64a070]
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 esi, ecx
mov ebx, fcn.00440db0
test ebx, ebx
je 0x44229c
push str.Setting_application_Mode
push 0x5f8398
push 0x5f8398
push str.ApplicationContext
push 0x5f8398
push 0x1e
call fcn.00440db0
add esp, 0x18
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xa0]
push 8
push str.pipename
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], eax
mov word [ebp - 0xa0], ax
call fcn.00408a10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [esi + 8]
call fcn.005307c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x442315
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00409510
cmp dword [ebp - 0x18], 0
sete al
test al, al
jne 0x442493
test ebx, ebx
je 0x44234b
push str.ESD_Helper_mode_set.
push 0x5f8398
push 0x5f8398
push str.ApplicationContext
push 0x5f8398
push 0x1e
call fcn.00440db0
add esp, 0x18
xor eax, eax
mov dword [esi + 4], 3
mov byte [esi], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
push str.sourcePath
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.00408810
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [esi + 8]
call fcn.005307c0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x4423b6
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00409510
push str.esdSourcePath
lea ecx, [ebp - 0x88]
call fcn.00408810
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x18]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004264c0
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x40]
add ecx, 0x28
cmp ecx, eax
je 0x4423fa
push 0xffffffffffffffff
push 0
push eax
call fcn.00408f10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x442419
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00409510
test ebx, ebx
je 0x44244c
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push str.sourcePath_for_parent_ESD__s
push 0x5f8398
push 0x5f8398
push str.ApplicationContext
push 0x5f8398
push 0x1e
call fcn.00440db0
add esp, 0x1c
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x442461
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x442841
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409510
jmp 0x442841
push str.uninstall
lea ecx, [ebp - 0x88]
call fcn.00408810
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [esi + 8]
call fcn.005307c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x4424d9
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00409510
cmp dword [ebp - 0x18], 0
sete al
test al, al
jne 0x442533
test ebx, ebx
je 0x44250b
push str.ESD_Uninstall_mode_set.
push 0x5f8398
push 0x5f8398
push str.ApplicationContext
push 0x5f8398
push 0x1e
call fcn.00440db0
add esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], 1
mov byte [esi], 1
cmp eax, 8
jb 0x442841
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409510
jmp 0x442841
push str.update
lea ecx, [ebp - 0x88]
call fcn.00408810
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [esi + 8]
call fcn.005307c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x442579
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00409510
cmp dword [ebp - 0x18], 0
sete al
test al, al
jne 0x4425ba
test ebx, ebx
je 0x4425ab
push str.ESD_Update_mode_set.
push 0x5f8398
push 0x5f8398
push str.ApplicationContext
push 0x5f8398
push 0x1e
call fcn.00440db0
add esp, 0x18
mov dword [esi + 4], 2
mov byte [esi], 1
jmp 0x442839
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.0051df90
test al, al
jne 0x44262b
test ebx, ebx
je 0x442605
push str.Failed_to_get_current_application_directory_path.
push 0x5f8398
push 0x5f8398
push str.ApplicationContext
push 0x5f8398
push 0x32
call fcn.00440db0
add esp, 0x18
push 0x6468c4
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], vtable.std::exception.0
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x90], xmm0
call fcn.0058f9de
push str.products
lea ecx, [ebp - 0x88]
call fcn.00408810
push ecx
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x58]
call fcn.0051e7b0
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.004087d0
push str.SuiteInfo.xml
lea ecx, [ebp - 0x88]
call fcn.00408810
push ecx
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x58]
call fcn.0051e7b0
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.004087d0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4426e1
test ebx, ebx
je 0x4426d2
push str.ESD_Suite_mode_set.
push 0x5f8398
push 0x5f8398
push str.ApplicationContext
push 0x5f8398
push 0x1e
call fcn.00440db0
add esp, 0x18
mov dword [esi + 4], 4
mov byte [esi], 1
jmp 0x442831
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call fcn.0051df90
test al, al
jne 0x442752
test ebx, ebx
je 0x44272c
push str.Failed_to_get_current_application_directory_path.
push 0x5f8398
push 0x5f8398
push str.ApplicationContext
push 0x5f8398
push 0x32
call fcn.00440db0
add esp, 0x18
push 0x6468c4
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], vtable.std::exception.0
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x90], xmm0
call fcn.0058f9de
push str.products
lea ecx, [ebp - 0x88]
call fcn.00408810
push ecx
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x70]
call fcn.0051e7b0
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x88]
call fcn.004087d0
push str.Driver.xml
lea ecx, [ebp - 0x88]
call fcn.00408810
push ecx
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x70]
call fcn.0051e7b0
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x88]
call fcn.004087d0
lea ecx, [ebp - 0x70]
call fcn.0051e860
test al, al
je 0x4427f8
test ebx, ebx
je 0x4427ef
push str.ESD_Product_mode_set.
push 0x5f8398
push 0x5f8398
push str.ApplicationContext
push 0x5f8398
push 0x1e
call fcn.00440db0
add esp, 0x18
mov dword [esi + 4], 0
jmp 0x442826
test ebx, ebx
je 0x44281f
push str.WAM_Install_mode_set.
push 0x5f8398
push 0x5f8398
push str.ApplicationContext
push 0x5f8398
push 0x1e
call fcn.00440db0
add esp, 0x18
mov dword [esi + 4], 5
lea ecx, [ebp - 0x70]
mov byte [esi], 1
call fcn.004087d0
lea ecx, [ebp - 0x58]
call fcn.004087d0
lea ecx, [ebp - 0x28]
call fcn.004087d0
mov al, 1
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.005765b2
mov esp, ebp
pop ebp
ret