Function at 0x470740
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af4f6
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
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 ebx, ecx
mov dword [ebp - 0x28], ebx
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
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 - 0x14]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4707c6
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 0x4707f4
lea edx, [ecx - 1]
test edx, edx
js 0x4709bc
cmp edx, ecx
jg 0x4709bc
cmp word [eax + edx*2], 0x5c
je 0x4707f4
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004020b0
push 9
push 0x4c9cb0
lea ecx, [ebp - 0x10]
call fcn.00402200
mov edi, dword [ebp - 0x10]
push edi
call dword [0x4b42d0]
test eax, eax
jne 0x47088a
lea eax, [ebp - 0x14]
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 - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47084a
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 0x470878
lea edx, [ecx - 1]
test edx, edx
js 0x4709bc
cmp edx, ecx
jg 0x4709bc
cmp word [eax + edx*2], 0x5c
je 0x470878
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004020b0
push 9
push 0x4c9cb0
lea ecx, [ebp - 0x10]
call fcn.00402200
mov edi, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x9c]
call fcn.0044d0f0
add ebx, 0x2c
push ebx
push edi
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.0044eb60
test eax, eax
je 0x470c4b
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 6
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 7
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 8
call fcn.0044d0f0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 9
call fcn.0044d1e0
lea ecx, [ebp - 0x64]
call fcn.0044d1e0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xa
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x54]
push eax
push str.Deny
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xa
call fcn.0044d7f0
cmp byte [ebx], 0
jne 0x4709d2
mov edi, edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x54]
call fcn.0044d7c0
test eax, eax
je 0x4709cf
mov esi, dword [ebp - 0x18]
push esi
lea ecx, [ebp - 0x44]
call fcn.0046fe70
test eax, eax
jne 0x4709c6
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.00471150
jmp 0x4709ca
push 0x80070057
call fcn.00402400
mov byte [eax + 4], 0
cmp byte [ebx], 0
je 0x470990
or esi, 0xffffffff
push 0
push str.DefaultVersion
push str.Properties
lea ecx, [ebp - 0x9c]
call fcn.0044d920
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x64]
push eax
push str.Default
lea ecx, [ebp - 0x9c]
call fcn.0044d7f0
test eax, eax
je 0x470a11
cmp dword [ebp - 0x2c], 0x803
ja 0x470aaf
lea eax, [ebp - 0x2c]
push eax
call fcn.00416760
add esp, 4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.00401cd0
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x470a4a
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 0x470a78
lea edx, [ecx - 1]
test edx, edx
js 0x4709bc
cmp edx, ecx
jg 0x4709bc
cmp word [eax + edx*2], 0x5c
je 0x470a78
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004020b0
push 9
push 0x4c9cb0
lea ecx, [ebp - 0x10]
call fcn.00402200
mov edi, dword [ebp - 0x10]
push ebx
push edi
lea ecx, [ebp - 0xd4]
call fcn.0044eb60
test eax, eax
je 0x470aaf
lea eax, [ebp - 0x64]
push eax
push str.Default
lea ecx, [ebp - 0xd4]
call fcn.0044d7f0
cmp byte [ebx], 0
jne 0x470b11
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x64]
call fcn.0044d7c0
test eax, eax
je 0x470b0e
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.0046fe70
test eax, eax
jne 0x470b09
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00470f30
add esp, 0x14
test eax, eax
je 0x470b09
push dword [ebp - 0x24]
mov ecx, edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.004701f0
cmp byte [ebx], 0
je 0x470ab7
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.0046d930
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x470b29
push eax
call fcn.0048c9a8
add esp, 4
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 8
call fcn.0044d300
lea ecx, [ebp - 0x54]
call fcn.0044d1e0
lea eax, [ebp - 0x54]
push eax
push str.Custom
lea ecx, [ebp - 0x9c]
call fcn.0044d7f0
cmp byte [ebx], 0
jne 0x470bab
mov edi, dword [ebp - 0x28]
lea esp, [esp]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x54]
call fcn.0044d7c0
test eax, eax
je 0x470ba8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00470f30
add esp, 0x14
test eax, eax
je 0x470ba3
push dword [ebp - 0x24]
mov ecx, edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.004701f0
cmp byte [ebx], 0
je 0x470b60
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x470bcb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x470beb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x470c0b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x470c2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x470c4b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x9c]
mov eax, dword [eax + 8]
mov byte [ebp - 4], 0
mov byte [eax + 0x18], 1
call fcn.0044d300
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x470c82
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret