Function at 0x542450
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, esp
mov dword [esi + 4], ecx
mov eax, dword [0x5c4738]
xor eax, ebp
mov dword [esi + 0x88], eax
lea edi, [esi + 0x30]
mov ecx, edi
call fcn.00542af0
mov ecx, edi
mov edx, 0x576380
call fcn.00542b60
test eax, eax
je 0x54264f
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp edi, 0xffffffff
je 0x542736
call fcn.004bafe0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [esi + 0x3b], 0
jns 0x5424bf
push dword [esi + 0x30]
call fcn.004cf0d6
add esp, 4
lea eax, [edi + 1]
cmp eax, 2
jae 0x542545
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esi + 0x24]
push eax
push edi
call fcn.00501dd0
add esp, 8
lea ebx, [esi + 0x30]
mov ecx, ebx
push edi
push 0x111
push str.CreateAndLock
push 1
call fcn.00501b30
lea ecx, [esi + 0x6c]
push 0x589924
push str.Cannot_create_service_update_mutex
call fcn.004fc970
mov ecx, ebx
call fcn.00501b70
cmp byte [edi + 0xb], 0
js 0x54263f
mov edi, dword [esi + 4]
lea eax, [edi + 1]
cmp eax, 2
jb 0x542530
call fcn.004bafe0
push edi
call fcn.004c1b90
add esp, 4
mov ecx, dword [esi + 0x88]
xor ecx, ebp
call fcn.004d25a3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x5424c7
push 8
call fcn.004cf0a6
add esp, 4
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], esp
push eax
mov dword [esi + 8], esp
lea ebx, [esi + 0x30]
push ebx
call fcn.00542340
add esp, 4
mov ecx, ebx
mov edx, 0x542ca0
call fcn.00542b60
mov ecx, dword [esi + 8]
mov dword [ecx], 0
test eax, eax
je 0x5425c0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
inc edx
cmp edx, 2
jae 0x5426f6
lea edx, [ebx + 1]
cmp edx, 2
jb 0x5425b9
mov dword [ecx], ebx
mov ebx, eax
call fcn.004bafe0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esi + 0xc]
mov ecx, ebx
call fcn.00521240
mov esp, dword [esi + 0x14]
cmp byte [esi + 0x3b], 0
jns 0x5425de
push dword [esi + 0x30]
call fcn.004cf0d6
add esp, 4
cmp dword [ebx], 0
je 0x542656
call fcn.004bafe0
mov eax, dword [esi + 4]
cmp dword [eax], edi
je 0x542617
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
mov ebx, eax
mov eax, dword [ecx]
inc eax
cmp eax, 2
jae 0x54271c
mov dword [ecx], edi
call fcn.004bafe0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 4]
mov ebx, dword [eax + 4]
mov ecx, dword [esi + 0xc]
mov dword [eax + 4], ecx
xor edi, edi
test ebx, ebx
je 0x54251a
mov ecx, ebx
call fcn.004c1b60
push ebx
call fcn.004cf0d6
add esp, 4
jmp 0x54251a
push dword [esi + 0x24]
call fcn.004cf0d6
add esp, 4
jmp 0x542517
xor edi, edi
jmp 0x5424ae
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esi + 0x24]
push eax
push edi
call fcn.00501dd0
add esp, 8
lea ecx, [esi + 0x30]
push edi
push 0x11b
push str.CreateAndLock
push 1
call fcn.00501b30
lea ebx, [esi + 0x38]
lea ecx, [esi + 0x6c]
push 0x589934
push str.Cannot_create_
call fcn.004fc970
lea edi, [esi + 0x18]
push edi
call fcn.00542340
add esp, 4
mov ecx, ebx
push edi
call fcn.004fefd0
lea ecx, [eax + 0x34]
push 0x58994c
push 0x589935
call fcn.004fc970
cmp byte [edi + 0xb], 0
jns 0x5426cd
push dword [esi + 0x18]
call fcn.004cf0d6
add esp, 4
lea ecx, [esi + 0x30]
call fcn.00501b70
cmp byte [esi + 0x2f], 0
mov edi, dword [esi + 0xc]
jns 0x5426e9
push dword [esi + 0x24]
call fcn.004cf0d6
add esp, 4
mov ecx, edi
call fcn.004c1b60
push edi
jmp 0x542642
mov dword [esi + 0x10], eax
call fcn.004bafe0
mov eax, dword [esi + 8]
push dword [eax]
call fcn.004c1b90
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
add esp, 4
mov dword [ecx], 0
jmp 0x5425a6
call fcn.004bafe0
mov eax, dword [esi + 4]
push dword [eax]
call fcn.004c1b90
mov ecx, dword [esi + 4]
add esp, 4
jmp 0x542606
xor edi, edi
jmp 0x5424a7