Function at 0x475450
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af82b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x4f3168]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.004165f0
add esp, 4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401cd0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4754d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x475504
lea edx, [ecx - 1]
test edx, edx
js 0x4757a2
cmp edx, ecx
jg 0x4757a2
cmp word [eax + edx*2], 0x5c
je 0x475504
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004020b0
push 7
push 0x4cb5b0
lea ecx, [ebp - 0x10]
call fcn.00402200
mov edi, dword [ebp - 0x10]
push edi
call dword [0x4b42d0]
test eax, eax
jne 0x47559a
lea eax, [ebp - 0x18]
push eax
call fcn.00416760
add esp, 4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401cd0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47555a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x475588
lea edx, [ecx - 1]
test edx, edx
js 0x4757a2
cmp edx, ecx
jg 0x4757a2
cmp word [eax + edx*2], 0x5c
je 0x475588
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004020b0
push 7
push 0x4cb5b0
lea ecx, [ebp - 0x10]
call fcn.00402200
mov edi, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x6c]
call fcn.0044d0f0
lea eax, [esi + 0x2c]
push eax
push edi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], eax
call fcn.0044eb60
test eax, eax
je 0x47580e
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 4
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
push 0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.0044d0f0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.0044d1e0
push 0
push str.DefaultVersion
push str.Properties
lea ecx, [ebp - 0x6c]
call fcn.0044d920
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push str.Default
lea ecx, [ebp - 0x6c]
call fcn.0044d7f0
test eax, eax
je 0x475640
cmp dword [ebp - 0x1c], 0x803
ja 0x4756e0
lea eax, [ebp - 0x1c]
push eax
call fcn.00416760
add esp, 4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00401cd0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x475679
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x4756a7
lea edx, [ecx - 1]
test edx, edx
js 0x4757a2
cmp edx, ecx
jg 0x4757a2
cmp word [eax + edx*2], 0x5c
je 0x4756a7
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004020b0
push 7
push 0x4cb5b0
lea ecx, [ebp - 0x10]
call fcn.00402200
push dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
push edi
lea ecx, [ebp - 0xa4]
call fcn.0044eb60
test eax, eax
je 0x4756e0
lea eax, [ebp - 0x34]
push eax
push str.Default
lea ecx, [ebp - 0xa4]
call fcn.0044d7f0
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0
jne 0x4757c2
mov edi, dword [ebp - 0x24]
nop
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.0044d7c0
test eax, eax
je 0x4757bf
lea ecx, [ebp - 0x14]
call fcn.0044f530
push 2
push 0x4c9b54
push dword [ebp - 0x14]
call fcn.004943e1
add esp, 0xc
test eax, eax
je 0x4757b5
push 1
push 0x4b48cc
push dword [ebp - 0x14]
call fcn.004943e1
add esp, 0xc
test eax, eax
je 0x4757b5
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jle 0x4757ac
push 0x3d
push eax
call fcn.0048f278
mov ecx, eax
mov eax, dword [ebp - 0x14]
add esp, 8
test ecx, ecx
je 0x4757ac
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4757ac
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403cb0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00401cd0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47579c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
push esi
jmp 0x4757ad
push 0x80070057
call fcn.00402400
push eax
mov ecx, dword [edi + 8]
call fcn.00474f80
cmp byte [edi + 0x2c], 0
je 0x4756f0
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.0044d300
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4757ee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47580e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.0044d300
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x475838
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 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