Function at 0x5286a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6037b2
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
xor ebx, ebx
lea edi, [esp + 0x14]
mov dword [esp + 0xe0], ebx
call fcn.0047ac70
lea edi, [esp + 0x10]
mov byte [esp + 0xe0], 1
call fcn.0040ab90
mov byte [esp + 0xe0], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528732
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
cmp eax, ebx
jle 0x528765
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x52897f
cmp ecx, eax
jg 0x52897f
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x528765
push 0x5c
lea edi, [esp + 0x14]
call fcn.0040af90
push 0xc
push str.urlguide.dat
lea ecx, [esp + 0x18]
push ecx
call fcn.0040aee0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x528811
lea ebx, [esp + 0x14]
call fcn.0047a980
lea edi, [esp + 0x10]
mov byte [esp + 0xe0], 2
call fcn.0040ab90
mov byte [esp + 0xe0], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5287cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jle 0x5287fe
lea eax, [ecx - 1]
test eax, eax
jl 0x52897f
cmp eax, ecx
jg 0x52897f
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x5287fe
push 0x5c
lea edi, [esp + 0x14]
call fcn.0040af90
push 0xc
push str.urlguide.dat
lea ecx, [esp + 0x18]
push ecx
call fcn.0040aee0
xor ebx, ebx
lea edx, [esp + 0x64]
push edx
xor edi, edi
call fcn.0050f180
mov esi, dword [ebp + 8]
mov byte [esp + 0xe0], 3
mov ecx, dword [esp + 0x10]
add esi, 0x34
push esi
lea edx, [esp + 0x68]
call fcn.0050f5c0
cmp eax, ebx
je 0x528bc8
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0xe0], 4
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe0], 5
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0xe0], 6
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0xe0], 7
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x34], eax
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0xe4], 8
call fcn.0050f180
mov eax, 0xa
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
lea ecx, [esp + 0x54]
push ecx
push str.Deny
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0xec], al
call fcn.0050f980
cmp byte [esi], bl
jne 0x528996
mov esi, dword [esp + 0x60]
cmp esi, ebx
je 0x528996
cmp esi, dword [esp + 0x5c]
je 0x528996
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea edi, [esp + 0x14]
call fcn.0040ab90
mov edi, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x40]
call fcn.004c39a0
cmp eax, ebx
jne 0x528989
mov eax, edi
lea ebx, [esp + 0x3c]
call fcn.0045f600
xor ebx, ebx
jmp 0x52898c
push 0x80070057
call fcn.00403650
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
add eax, 0x34
cmp byte [eax], bl
je 0x528944
push str.DefaultVersion
push str.Properties
lea eax, [esp + 0x6c]
push eax
call fcn.0050fb90
lea ecx, [esp + 0x18]
push ecx
push str.Default
lea edx, [esp + 0x6c]
push edx
mov esi, eax
call fcn.0050f980
cmp eax, ebx
je 0x5289d0
cmp esi, 0x454
ja 0x528a8c
lea ebx, [esp + 0x30]
call fcn.0047a980
lea edi, [esp + 0x10]
mov byte [esp + 0xe0], 0xb
call fcn.0040ab90
mov byte [esp + 0xe0], 0xa
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528a12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jle 0x528a45
lea eax, [ecx - 1]
test eax, eax
jl 0x52897f
cmp eax, ecx
jg 0x52897f
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x528a45
push 0x5c
lea edi, [esp + 0x14]
call fcn.0040af90
push 0xc
push str.urlguide.dat
lea ecx, [esp + 0x18]
push ecx
call fcn.0040aee0
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x34]
push eax
lea edx, [esp + 0xa0]
call fcn.0050f5c0
test eax, eax
je 0x528a88
lea edx, [esp + 0x18]
push edx
push str.Default
lea eax, [esp + 0xa4]
push eax
call fcn.0050f980
xor ebx, ebx
jmp 0x528a8f
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push esi
call fcn.00528c30
lea edi, [esp + 0x3c]
call fcn.004c6cd0
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x528aba
push eax
call fcn.005d27e0
add esp, 4
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0xe4], 8
call fcn.0050f250
lea ecx, [esp + 0x18]
push ecx
push str.Custom
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call fcn.0050f980
push ebx
lea eax, [esp + 0x1c]
push eax
push esi
push esi
call fcn.00528c30
mov byte [esp + 0xe0], 7
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528b28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe0], 6
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528b50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe0], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528b78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe0], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528ba0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe0], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528bc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0xe4], bl
call fcn.0050f250
mov dword [esp + 0xe0], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x528c04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4