Function at 0x569080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4cee
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
or esi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], edi
je 0x569164
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x569164
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x56938c
mov ebx, dword [ebp + 0xc]
test bl, bl
je 0x569166
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00567f60
add esp, 8
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004bfcd0
mov edx, dword [ebp - 0x26c]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x56912e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5ffa8c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004c3c70
add esp, 0xc
mov eax, dword [ebp - 0x264]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 0x104
jl 0x5691a3
lea ecx, [ebp - 0x264]
call fcn.004b2a80
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x569185
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
je 0x569375
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5691d0
sub ecx, edx
sar ecx, 1
je 0x56921f
lea edx, [ebp - 0x234]
mov eax, 0x6453c8
nop dword [eax]
mov si, word [eax]
cmp si, word [edx]
jne 0x569216
test si, si
je 0x569212
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x569216
add eax, 4
add edx, 4
test si, si
jne 0x5691f0
xor eax, eax
jmp 0x56921b
sbb eax, eax
or eax, 1
test eax, eax
je 0x569281
test ecx, ecx
je 0x56925f
lea ecx, [ebp - 0x234]
mov eax, 0x6453c0
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x569256
test dx, dx
je 0x569252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x569256
add eax, 4
add ecx, 4
test dx, dx
jne 0x569230
xor eax, eax
jmp 0x56925b
sbb eax, eax
or eax, 1
test eax, eax
je 0x569281
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.004c3c70
add esp, 0xc
call fcn.00569080
add esp, 8
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call ebx
test eax, eax
je 0x56936c
lea edx, [ebp - 0x234]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x5692b0
sub edx, ecx
sar edx, 1
je 0x5692ff
lea ecx, [ebp - 0x234]
mov eax, 0x6453c8
nop dword [eax]
mov si, word [eax]
cmp si, word [ecx]
jne 0x5692f6
test si, si
je 0x5692f2
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x5692f6
add eax, 4
add ecx, 4
test si, si
jne 0x5692d0
xor eax, eax
jmp 0x5692fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x569290
test edx, edx
je 0x569343
lea ecx, [ebp - 0x234]
mov eax, 0x6453c0
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x569336
test dx, dx
je 0x569332
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x569336
add eax, 4
add ecx, 4
test dx, dx
jne 0x569310
xor eax, eax
jmp 0x56933b
sbb eax, eax
or eax, 1
test eax, eax
je 0x569290
push dword [ebp + 0xc]
push ecx
mov eax, esp
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.004c3c70
add esp, 0xc
call fcn.00569080
add esp, 8
mov edi, eax
jmp 0x569290
mov eax, dword [ebp - 0x268]
or esi, 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x264]
call fcn.004b2a80
jmp 0x569166
mov edi, 1
jmp 0x569166