Function at 0x4136c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44d600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x463290]
mov ecx, 0x4d6e34
push esi
push edi
test ecx, ecx
mov dword [esp + 0xc], eax
je 0x41373d
mov edx, ecx
shr edx, 0x10
jne 0x413704
xor eax, eax
mov ax, cx
lea ecx, [esp + 0xc]
push eax
call fcn.004050d0
jmp 0x41373d
push 0x4d6e34
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x41373d
push esi
lea ecx, [esp + 0x10]
call fcn.00402e70
test eax, eax
je 0x41373d
mov edi, dword [esp + 0xc]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, 0x4d6e34
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xc]
mov dword [esp + 0x20], 0
push eax
push str.Path
push 0x4630a8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00410ec0
add esp, 0x10
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push str.SafeLive.dll
push ecx
push edx
call fcn.00409a80
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
mov byte [esp + 0x24], 1
call edi
test eax, eax
je 0x413881
lea ecx, [esp + 8]
push ecx
call fcn.00413a60
add esp, 4
test eax, eax
je 0x413881
mov edx, dword [esp + 8]
push edx
call fcn.00413ac0
add esp, 4
test eax, eax
je 0x413881
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 8]
mov ecx, dword [esi]
cmp ecx, eax
je 0x41380b
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4137db
mov edx, dword [0x463294]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4137e2
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4137f0
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, esi
call fcn.00404f60
jmp 0x413807
mov ecx, esi
call fcn.00402f00
mov eax, dword [esp + 8]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 8]
mov edx, dword [0x463294]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x413838
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x413838
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
mov eax, dword [esp + 0xc]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x413a09
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x413a09
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
call fcn.00411960
add esp, 4
push str.SafeLive.dll
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x2c], 2
call fcn.00409a80
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esp + 8]
cmp ecx, eax
mov byte [esp + 0x20], 3
je 0x4138f8
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4138c8
mov edx, dword [0x463294]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4138cf
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4138df
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x10]
call fcn.00404f60
jmp 0x4138f8
lea ecx, [esp + 8]
call fcn.00402f00
mov esi, dword [esi]
mov dword [esp + 8], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x413927
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413927
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0043c2e0
mov eax, dword [esp + 8]
push eax
call edi
test eax, eax
je 0x413962
lea ecx, [esp + 8]
push ecx
call fcn.00413a60
add esp, 4
test eax, eax
je 0x413962
mov edx, dword [esp + 8]
push edx
call fcn.00413ac0
add esp, 4
test eax, eax
jne 0x4139dc
lea ecx, [esp + 0x10]
push ecx
call fcn.00411770
add esp, 4
push 0x4656cc
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.00409a80
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 5
call fcn.00402fa0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 4
call fcn.0043c2e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.0043c2e0
mov eax, dword [esp + 8]
push eax
call edi
test eax, eax
je 0x413a1f
lea ecx, [esp + 8]
push ecx
call fcn.00413a60
add esp, 4
test eax, eax
je 0x413a1f
mov edx, dword [esp + 8]
push edx
call fcn.00413ac0
add esp, 4
test eax, eax
je 0x413a1f
mov ecx, dword [esp + 0x28]
lea eax, [esp + 8]
push eax
call fcn.00402fa0
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0043c2e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043c2e0
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0043c2e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043c2e0
mov ecx, dword [esp + 0x18]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret