Function at 0x56dad0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73ec65
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x857060]
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
push str.Setting_application_Mode
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x1e
call fcn.0056c500
xor eax, eax
mov dword [ebp - 0x238], 0
add esp, 0x18
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x230]
push 8
push str.pipename
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00426d40
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [esi + 8]
call fcn.0066a4b0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00426ce0
cmp dword [ebp - 0x238], 0
je 0x56dd25
push str.ESD_Helper_mode_set.
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x1e
call fcn.0056c500
xor eax, eax
mov dword [esi + 4], 3
add esp, 0x18
mov byte [esi], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a8]
push 0xa
push str.sourcePath
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.00426d40
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [esi + 8]
call fcn.0066a4b0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 2
call fcn.00426ce0
push 0xd
xor eax, eax
mov dword [ebp - 0x298], 0
push str.esdSourcePath
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.00426d40
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x18]
push eax
call fcn.005540a0
lea ecx, [ebp - 0x230]
cmp eax, ecx
je 0x56dcaa
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
push ecx
mov ecx, eax
call fcn.00426d40
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 2
call fcn.00426ce0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push str.sourcePath_for_parent_ESD__s
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x1e
call fcn.0056c500
add esp, 0x1c
lea ecx, [ebp - 0x230]
call fcn.00426ce0
lea ecx, [ebp - 0x248]
call fcn.00426ce0
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.006d0965
mov esp, ebp
pop ebp
ret
push 9
xor eax, eax
mov dword [ebp - 0x298], 0
push str.uninstall
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.00426d40
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [esi + 8]
call fcn.0066a4b0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0
call fcn.00426ce0
cmp dword [ebp - 0x238], 0
je 0x56ddb8
push str.ESD_Uninstall_mode_set.
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x1e
call fcn.0056c500
add esp, 0x18
mov dword [esi + 4], 1
mov byte [esi], 1
jmp 0x56dcfc
push 6
xor eax, eax
mov dword [ebp - 0x298], 0
push str.update
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.00426d40
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [esi + 8]
call fcn.0066a4b0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0
call fcn.00426ce0
cmp dword [ebp - 0x238], 0
je 0x56de4b
push str.ESD_Update_mode_set.
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x1e
call fcn.0056c500
add esp, 0x18
mov dword [esi + 4], 2
mov byte [esi], 1
jmp 0x56dcfc
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 7
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push eax
push 0
call ebx
test eax, eax
je 0x56deb2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x56de90
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x290]
call fcn.00426d40
push 0xc
xor eax, eax
mov dword [ebp - 0x298], 0
push str.embeddedData
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.00426d40
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [esi + 8]
call fcn.0066a4b0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 7
call fcn.00426ce0
cmp dword [ebp - 0x238], 0
je 0x56df71
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push str.TRON_Package_Download_mode_is_set_via_command_line__s
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x1e
call fcn.0056c500
add esp, 0x18
lea edx, [esi + 0x20]
lea ecx, [ebp - 0x248]
call fcn.00653cd0
add esp, 4
mov dword [esi + 4], 6
mov byte [esi], 1
lea ecx, [ebp - 0x290]
jmp 0x56dcf7
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 9
push eax
push 0
call ebx
test eax, eax
je 0x56e2bb
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x56e2bb
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x56dfd0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.00426d40
push 8
xor eax, eax
mov dword [ebp - 0x298], 0
push str.products
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.00426d40
push ecx
lea edx, [ebp - 0x2a8]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x260]
call fcn.00651b80
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2a8]
call fcn.00426ce0
push 0xd
xor eax, eax
mov dword [ebp - 0x298], 0
push str.SuiteInfo.xml
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.00426d40
push ecx
lea edx, [ebp - 0x2a8]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x260]
call fcn.00651b80
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2a8]
call fcn.00426ce0
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x56e102
push str.ESD_Suite_mode_set.
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x1e
call fcn.0056c500
add esp, 0x18
mov dword [esi + 4], 4
lea ecx, [ebp - 0x260]
mov byte [esi], 1
call fcn.00426ce0
lea ecx, [ebp - 0x290]
jmp 0x56dcf7
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0xc
push eax
push 0
call ebx
test eax, eax
je 0x56e2bb
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x56e2bb
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x56e155
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x278]
call fcn.00426d40
push 8
xor eax, eax
mov dword [ebp - 0x298], 0
push str.products
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.00426d40
push ecx
lea edx, [ebp - 0x2a8]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x278]
call fcn.00651b80
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2a8]
call fcn.00426ce0
push 0xa
xor eax, eax
mov dword [ebp - 0x298], 0
push str.Driver.xml
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.00426d40
push ecx
lea edx, [ebp - 0x2a8]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x278]
call fcn.00651b80
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2a8]
call fcn.00426ce0
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x56e292
push str.ESD_Product_mode_set.
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x1e
call fcn.0056c500
mov dword [esi + 4], 0
add esp, 0x18
mov byte [esi], 1
lea ecx, [ebp - 0x278]
call fcn.00426ce0
lea ecx, [ebp - 0x260]
call fcn.00426ce0
lea ecx, [ebp - 0x290]
jmp 0x56dcf7
push str.WAM_Install_mode_set.
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x1e
call fcn.0056c500
mov dword [esi + 4], 5
jmp 0x56e26b
push str.Failed_to_get_current_application_directory_path.
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x32
call fcn.0056c500
add esp, 0x18
lea ecx, [ebp - 0x224]
call fcn.004a3120
push 0x853b78
lea eax, [ebp - 0x224]
push eax
call fcn.006e8e84
int3