Function at 0x456e50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b70b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
lea ecx, [ebp - 0x4c]
call fcn.00419790
xor ebx, ebx
mov dword [ebp - 4], 0
cmp ebx, 5
jae 0x456fd4
mov eax, dword [0x64045c]
lea ecx, [ebp + 8]
push dword [eax + ebx*4]
call fcn.0040c2d0
add edi, 0x2c4
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov dword [ebp - 0x14], edi
push eax
mov ecx, edi
call fcn.0041a440
mov esi, eax
cmp esi, dword [edi]
je 0x456f17
mov ecx, dword [esi + 0x10]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x457043
mov eax, dword [ebp + 8]
mov edx, eax
nop
mov di, word [edx]
cmp di, word [ecx]
jne 0x456f06
test di, di
je 0x456f02
mov di, word [edx + 2]
cmp di, word [ecx + 2]
jne 0x456f06
add edx, 4
add ecx, 4
test di, di
jne 0x456ee0
xor ecx, ecx
jmp 0x456f0b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
sets cl
test cl, cl
je 0x456f41
mov edi, dword [ebp - 0x14]
lea eax, [ebp + 8]
push ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, edi
call fcn.0041b6d0
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.0041b770
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov esi, dword [esi + 0x14]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456f62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x456fd1
call fcn.0040bce0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x457043
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, dword [0x64045c]
push dword [eax + ebx*4]
lea eax, [ebp - 0x14]
push str.::_s
push eax
call fcn.00422de0
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x4c]
push eax
call fcn.00409aa0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456fd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
inc ebx
cmp ebx, 5
jb 0x456e9a
lea eax, [ebp - 0x4c]
push eax
call fcn.0045acb0
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.AutoCatalog
call fcn.0040c2d0
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.DTFence
call fcn.0040c2d0
mov byte [ebp - 4], 4
mov eax, dword [0x640424]
test eax, eax
jne 0x457058
push 0xc
call fcn.00551c81
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x45704d
mov ecx, eax
call fcn.00422e00
jmp 0x45704f
push 0x80004005
call fcn.0040c390
xor eax, eax
mov byte [ebp - 4], 4
mov dword [0x640424], eax
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.00423250
mov esi, dword [ebp + 8]
test esi, esi
jne 0x457087
call fcn.004271e0
test eax, eax
mov ecx, edi
lea eax, [ebp - 0x4c]
push eax
je 0x457080
call fcn.0045a670
jmp 0x457092
call fcn.00457510
jmp 0x457092
lea eax, [ebp - 0x4c]
mov ecx, edi
push eax
call fcn.00459700
mov ecx, dword [edi + 0x30c]
test ecx, ecx
je 0x4570b6
cmp dword [edi + 0x344], 0
je 0x4570b6
cmp dword [edi + 0x354], 0
je 0x4570b2
test esi, esi
jne 0x4570b6
mov eax, dword [ecx]
call dword [eax]
push ecx
mov ecx, edi
call fcn.004563e0
mov eax, dword [edi + 0x320]
xor ecx, ecx
sub eax, dword [edi + 0x31c]
mov dword [ebp - 0x14], ecx
test eax, 0xfffffffc
jle 0x457426
lea ebx, [ebx]
mov eax, dword [edi + 0x31c]
mov esi, dword [eax + ecx*4]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x45710f
cmp ecx, dword [esi - 0x10]
jne 0x45710f
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x457148
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x4574e0
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00551ae9
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [ebp - 0x28], esi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4573e7
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
add eax, 0x64
mov byte [ebp - 4], 7
push eax
call fcn.00431aa0
mov eax, dword [ebp - 0x3c]
xor edi, edi
mov ecx, dword [ebp - 0x40]
sub eax, ecx
sar eax, 2
mov dword [ebp + 8], eax
test eax, eax
jle 0x45723b
lea ecx, [ecx]
mov ecx, dword [ecx + edi*4]
lea eax, [ebp - 0x18]
push eax
call fcn.0044d300
mov byte [ebp - 4], 8
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x457043
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4571e9
test dx, dx
je 0x4571e5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4571e9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4571c3
xor eax, eax
jmp 0x4571ee
sbb eax, eax
or eax, 1
test eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x18]
sete bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x457214
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x457227
mov ecx, dword [ebp - 0x40]
inc edi
cmp edi, dword [ebp + 8]
jl 0x4571a0
jmp 0x45723b
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov edi, dword [eax + edi*4]
mov ebx, dword [ecx + 0x44]
test edi, edi
jne 0x4573b5
mov edi, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp + 8], ebx
mov eax, dword [edi + 0x38]
sub eax, dword [edi + 0x34]
test eax, 0xfffffffc
jle 0x4573c2
jmp 0x457260
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 9
lea ecx, [ebx*4]
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x24], ecx
mov eax, dword [ecx + eax]
lea ecx, [ebp - 0x34]
add eax, 0x24
push eax
call fcn.00431aa0
mov eax, dword [ebp - 0x30]
xor edi, edi
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x457350
lea ecx, [ecx]
mov ecx, dword [ecx + edi*4]
lea eax, [ebp - 0x1c]
push eax
call fcn.0044d300
xor ecx, ecx
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
test eax, eax
setne cl
test ecx, ecx
je 0x457043
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4572f9
test dx, dx
je 0x4572f5
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4572f9
add ecx, 4
add eax, 4
test dx, dx
jne 0x4572d3
xor eax, eax
jmp 0x4572fe
sbb eax, eax
or eax, 1
test eax, eax
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x1c]
sete bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x457324
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x34]
test bl, bl
jne 0x457337
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x4572b0
jmp 0x45734d
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov edi, dword [ecx + edi*4]
mov eax, dword [eax + 0x34]
mov eax, dword [edx + eax]
mov ebx, dword [eax + 4]
test edi, edi
jne 0x45738c
mov ebx, dword [ebp + 8]
test ecx, ecx
je 0x457372
push ecx
call fcn.00551995
add esp, 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov edi, dword [ebp - 0x10]
inc ebx
mov dword [ebp + 8], ebx
mov eax, dword [edi + 0x38]
sub eax, dword [edi + 0x34]
sar eax, 2
cmp ebx, eax
jl 0x457260
jmp 0x4573c2
mov byte [ebp - 4], 7
test ecx, ecx
je 0x4573b2
push ecx
call fcn.00551995
add esp, 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x30c]
push edi
push ebx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4573e7
push eax
call fcn.00551995
add esp, 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x457405
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [edi + 0x320]
sub eax, dword [edi + 0x31c]
sar eax, 2
cmp ecx, eax
jl 0x4570e0
mov ebx, dword [ebp - 0x10]
mov edi, dword [edi + 0x320]
mov esi, dword [ebx + 0x31c]
cmp esi, edi
je 0x457463
lea esp, [esp]
mov edx, dword [esi]
or ecx, 0xffffffff
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45745c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x457440
mov eax, dword [ebx + 0x31c]
mov dword [ebx + 0x320], eax
mov dword [ebx + 0x318], 1
mov dword [ebx + 0x308], 1
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4574cc
mov edi, dword [ebp - 0x48]
mov esi, ebx
cmp ebx, edi
je 0x4574c3
lea ebx, [ebx]
mov edx, dword [esi]
or ecx, 0xffffffff
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4574bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x4574a0
push ebx
call fcn.00551995
add esp, 4
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
call fcn.0040c3b0
int3