Function at 0x412500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f33c
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x43a050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, edi
mov dword [edi], vtable.CTiXmlConfig.0
call fcn.0040fa90
mov dword [ebp - 4], 0
mov dword [edi], vtable.CProtectorConfig.0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
lea esi, [edi + 0x22c]
mov ecx, section..data
mov dword [ebp - 0x1c], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
lea esi, [edi + 0x230]
mov ecx, section..data
mov dword [ebp - 0x20], esi
call edx
add eax, 0x10
mov dword [esi], eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040ba30
mov byte [ebp - 4], 3
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
push ecx
mov byte [ebp - 4], 4
mov eax, esp
mov dword [ebp - 0x18], esp
push eax
mov ecx, str._appdata__tweakcube3config_
call fcn.004012d0
lea esi, [ebp - 0x18]
call fcn.0040c840
mov byte [ebp - 4], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x41261d
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41260d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41260d
call fcn.00401710
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x412602
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ebx, dword [ebp - 0x14]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
jmp 0x41261d
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
call fcn.004018e0
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412640
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412657
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040cf50
add esp, 4
push 0xc
push str.winguard.xml
lea ebx, [ebp - 0x10]
call fcn.00401820
mov esi, dword [ebp - 0x10]
push edi
mov ebx, esi
call fcn.0040f9a0
push edi
call fcn.0040fa10
call fcn.0040fb60
cmp byte [0x43c9e8], 0
jne 0x41268f
push 0x43c9e8
call fcn.00413d70
mov edx, dword [ebp - 0x1c]
push str.TC_Protect:
push edx
mov ebx, 0xb
call fcn.004018e0
mov eax, dword [ebp - 0x20]
push str.TC_Guard:
push eax
mov ebx, 9
call fcn.004018e0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4126d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040bb20
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412700
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4