Function at 0x526730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60384b
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
xor esi, esi
lea edi, [esp + 0x34]
mov dword [esp + 0x18], esi
call fcn.0047ac70
lea ebx, [esp + 0x30]
mov dword [esp + 0xd8], esi
call fcn.0047a980
mov ebx, 1
mov byte [esp + 0xd8], bl
mov esi, dword [esp + 0x34]
mov eax, dword [esi - 0xc]
test eax, eax
jle 0x5267c0
lea ecx, [eax - 1]
test ecx, ecx
jl 0x5269fc
cmp ecx, eax
jg 0x5269fc
movzx eax, word [esi + ecx*2]
cmp ax, 0x5c
je 0x5267c0
push 0x5c
call fcn.0040af90
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jle 0x5267f3
lea eax, [ecx - 1]
test eax, eax
jl 0x5269fc
cmp eax, ecx
jg 0x5269fc
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x5267f3
push 0x5c
lea edi, [esp + 0x34]
call fcn.0040af90
lea eax, [esi - 0x10]
mov dword [esp + 0x58], eax
call fcn.0040a210
add eax, 0x10
mov dword [esp + 0x14], eax
push 8
push 0x629678
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xe4], 2
call fcn.0040aee0
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x52684e
lea eax, [esp + 0x30]
lea edi, [esp + 0x14]
call fcn.0040ab90
push 8
push 0x629678
mov ecx, edi
push ecx
call fcn.0040aee0
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 8]
push ebx
push 0
lea eax, [edi + 0x30]
push eax
push esi
push edi
call fcn.00525db0
lea eax, [esi - 0x10]
mov byte [esp + 0xd8], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x526882
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.phrase.ini
call fcn.0040aab0
add esp, 8
mov byte [esp + 0xd8], 3
mov eax, dword [edi + 0x28]
sub eax, 0x10
call fcn.0040a210
lea ebx, [eax + 0x10]
mov dword [esp + 0x38], ebx
mov byte [esp + 0xd8], 4
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x3c], esi
lea eax, [esp + 0x5c]
mov byte [esp + 0xd8], 5
mov edi, dword [esp + 0x14]
push eax
call fcn.0050f180
mov byte [esp + 0xd8], 6
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x526a06
lea edx, [esp + 0x94]
push edx
mov edi, ebx
call fcn.0050f180
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xdc], 7
xor ebx, ebx
push str.Default
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.0050f980
mov eax, dword [ebp + 8]
push ebx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.005263b0
add esp, 0xc
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0xdc], 6
call fcn.0050f250
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0xdc], 5
call fcn.0050f250
add esi, 0xfffffff0
mov byte [esp + 0xd8], 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5269a3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0xd8], 3
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 0x5269cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 1
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 0x526d78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x526d78
push 0x80070057
call fcn.00403650
push 0x6291fc
push str.Properties
lea ecx, [esp + 0x64]
push ecx
call fcn.0050fb90
xor ebx, ebx
cmp eax, ebx
jne 0x526a7a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
push ebx
lea edx, [esp + 0x1c]
push edx
add eax, 0x30
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call fcn.00525db0
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0xdc], 5
call fcn.0050f250
add esi, 0xfffffff0
mov byte [esp + 0xd8], 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x526d26
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x526d26
lea ecx, [esp + 0x1c]
push ecx
push str.Custom
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.0050f980
mov edi, dword [ebp + 8]
push ebx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.005263b0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push str.Default
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.0050f980
push str.DefaultVersion
push str.Properties
lea eax, [esp + 0x64]
push eax
call fcn.0050fb90
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0xa
mov dword [esp + 0x54], ebx
lea eax, [edi + 0x30]
mov byte [esp + 0xd8], 8
cmp byte [eax], bl
jne 0x526bdb
jmp 0x526b20
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x526bdb
cmp eax, dword [esp + 0x24]
je 0x526bdb
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 8]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x526b96
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x526b83
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x526b83
call fcn.0040a210
mov dword [esp + 0x18], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x526b76
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov esi, dword [esp + 0x18]
add esi, 0x10
mov dword [esp + 0x3c], esi
jmp 0x526b96
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x40]
call fcn.004037a0
mov esi, dword [esp + 0x3c]
xor ebx, ebx
push 4
push str.__D:
push esi
call fcn.005d5260
add esp, 0xc
test eax, eax
jne 0x526bcd
lea edi, [esi + 8]
push edi
lea ecx, [esp + 0x44]
call fcn.004c39a0
cmp eax, ebx
jne 0x526bca
mov eax, edi
lea ebx, [esp + 0x40]
call fcn.0045f600
xor ebx, ebx
jmp 0x526bcd
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
add eax, 0x30
cmp byte [eax], bl
je 0x526b20
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x94]
push ecx
call fcn.0050f180
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0xdc], 9
push str.Default
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.0050f980
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.005263b0
mov ecx, dword [esp + 0x38]
add esp, 0xc
lea edx, [esp + 0x94]
add eax, ecx
push edx
mov dword [esp + 0x1c], eax
mov byte [esp + 0xdc], 8
call fcn.0050f250
mov byte [esp + 0xd8], 6
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
cmp eax, ecx
je 0x526cb6
mov edi, eax
add eax, 0xc
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x44]
call fcn.004c6d20
mov ecx, dword [edi + 0x10]
push ecx
lea ecx, [esp + 0x44]
call fcn.004c6d20
mov eax, dword [edi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x526ca4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
mov dword [edx], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x4c]
cmp eax, ebx
mov dword [esp + 0x44], ebx
je 0x526cd7
mov edi, dword [eax]
push eax
call fcn.005d27e0
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x526cc2
mov ecx, dword [esp + 0x54]
cmp ecx, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], ecx
je 0x526cf0
push ecx
call fcn.005d27e0
add esp, 4
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0xdc], 5
call fcn.0050f250
add esi, 0xfffffff0
mov byte [esp + 0xd8], 4
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x526d26
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x526d4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x526d76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov ecx, dword [esp + 0x18]
push ebx
push ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x25
call fcn.004874e0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x526da3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2c], ebx
mov byte [esp + 0xd8], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x526dca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xd8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x526df2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4