Function at 0x569a00
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x268], esi
call fcn.005687f0
test ebx, ebx
je 0x569db6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x569a60
mov ecx, esi
call fcn.005687f0
push ebx
mov ecx, esi
mov dword [esi + 4], 1
call fcn.005698b0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x569db6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, ebx
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x25c], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x569a97
sub ecx, edx
sar ecx, 1
push edi
test ecx, ecx
jle 0x569b93
mov ecx, ebx
or edi, 0xffffffff
mov dword [ebp - 0x264], edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x569ac0
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x569afc
lea eax, [ecx - 1]
cmp eax, ecx
jge 0x569afc
nop word [eax + eax]
mov edx, eax
test eax, eax
js 0x569afc
cmp word [ebx + eax*2], 0x2e
je 0x569af4
dec eax
cmp edx, ecx
jle 0x569ae0
jmp 0x569afc
mov edi, eax
mov dword [ebp - 0x264], eax
mov ecx, ebx
or esi, 0xffffffff
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x569b04
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x569b36
lea eax, [ecx - 1]
cmp eax, ecx
jge 0x569b36
nop
mov edx, eax
test eax, eax
js 0x569b36
cmp word [ebx + eax*2], 0x5c
je 0x569b34
dec eax
cmp edx, ecx
jle 0x569b20
jmp 0x569b36
mov esi, eax
cmp edi, 0xffffffff
mov edi, ebx
lea ecx, [edi + 2]
jne 0x569bf4
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x569b44
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f771
lea ecx, [esi + esi]
mov dword [ebp - 0x258], eax
push ecx
push 0
push eax
call fcn.0058c8f0
lea ecx, [edi + edi]
push ecx
push ebx
push dword [ebp - 0x258]
call fcn.0058bd80
add esp, 0x1c
xor esi, esi
mov edi, dword [ebp - 0x268]
mov ecx, edi
call fcn.005687f0
push esi
push dword [ebp - 0x258]
mov ecx, edi
mov dword [edi + 4], 0
call fcn.00569dd0
mov esi, eax
mov eax, dword [ebp - 0x258]
pop edi
test eax, eax
je 0x569bcd
push eax
call fcn.0050edcc
add esp, 4
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x569be0
push eax
call fcn.0050edcc
add esp, 4
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 4
cmp esi, 0xffffffff
jne 0x569c55
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x569c00
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f771
lea ecx, [esi + esi]
mov dword [ebp - 0x25c], eax
push ecx
push 0
push eax
call fcn.0058c8f0
mov esi, dword [ebp - 0x25c]
lea ecx, [edi + edi]
push ecx
push ebx
push esi
call fcn.0058bd80
add esp, 0x1c
jmp 0x569b95
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x569c55
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x260], edi
cmp dword [ebp - 0x264], esi
jge 0x569caa
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f771
mov ecx, eax
lea eax, [esi + esi]
push eax
push 0
push ecx
mov dword [ebp - 0x258], ecx
call fcn.0058c8f0
lea eax, [edi + edi]
push eax
jmp 0x569b84
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x25c], 0
test edi, edi
jle 0x569b93
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x569cd0
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x569b93
lea esi, [ecx - 1]
cmp esi, ecx
jge 0x569b93
mov eax, esi
test esi, esi
js 0x569b93
cmp word [ebx + esi*2], 0x5c
je 0x569d0d
dec esi
cmp eax, ecx
jle 0x569cf2
jmp 0x569b93
test esi, esi
jle 0x569b93
lea eax, [edi - 1]
cmp esi, eax
jge 0x569b93
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f771
mov ecx, eax
lea edi, [esi + esi]
lea eax, [edi + 2]
mov dword [ebp - 0x258], ecx
push eax
push 0
push ecx
call fcn.0058c8f0
push edi
push ebx
push dword [ebp - 0x258]
call fcn.0058bd80
mov eax, dword [ebp - 0x260]
xor ecx, ecx
sub eax, esi
mov edx, 2
mov dword [ebp - 0x260], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f771
mov esi, dword [ebp - 0x260]
add esi, esi
mov dword [ebp - 0x25c], eax
push esi
push 0
push eax
call fcn.0058c8f0
lea eax, [esi - 2]
mov esi, dword [ebp - 0x25c]
push eax
lea eax, [ebx + 2]
add eax, edi
push eax
push esi
call fcn.0058bd80
add esp, 0x38
jmp 0x569b95
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 4