Function at 0x56850c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x568514
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x56878f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00404d04
mov eax, dword [0x592134]
mov byte [eax], 0
mov dl, 1
mov eax, dword [0x441938]
call fcn.00441a38
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.00441ad8
mov edx, 0x5687a4
mov eax, ebx
call fcn.00441c60
test al, al
je 0x5685ab
lea ecx, [ebp - 0xc]
mov edx, 0x5687cc
mov eax, ebx
call fcn.00441edc
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00409478
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [0x59243c]
mov eax, dword [eax]
call fcn.00409478
mov edx, dword [ebp - 0x10]
pop eax
call fcn.0040512c
mov eax, dword [0x592134]
sete byte [eax]
mov eax, ebx
call fcn.00441aa8
lea eax, [ebp - 0x18]
mov edx, dword [0x5924a0]
mov edx, dword [edx]
call fcn.00404efc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409478
mov edx, dword [ebp - 0x14]
mov eax, 0x5687e0
call fcn.00405324
mov esi, eax
test esi, esi
jle 0x56866b
lea eax, [ebp - 4]
mov edx, dword [0x5924a0]
mov edx, dword [edx]
call fcn.00404efc
lea ecx, [esi + 5]
lea eax, [ebp - 4]
mov edx, 1
call fcn.00405280
lea eax, [ebp - 0x1c]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405240
mov eax, dword [ebp - 0x1c]
mov edx, 0x5687f0
call fcn.0040512c
jne 0x568651
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405280
lea ecx, [ebp - 0x20]
mov dl, 0x22
mov eax, dword [ebp - 4]
call fcn.004992bc
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 4]
call fcn.00404d9c
jmp 0x5686e8
lea ecx, [ebp - 0x24]
mov dl, 0x20
mov eax, dword [ebp - 4]
call fcn.004992bc
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00404d9c
jmp 0x5686e8
mov eax, dword [0x592134]
cmp byte [eax], 0
je 0x5686e8
mov edx, 0x5687a4
mov eax, ebx
call fcn.00441c60
test al, al
je 0x5686e8
lea ecx, [ebp - 4]
mov edx, 0x5687fc
mov eax, ebx
call fcn.00441edc
cmp dword [ebp - 4], 0
jne 0x5686e1
mov edx, 0x568810
mov eax, ebx
call fcn.00442074
test al, al
je 0x5686e1
mov edx, 0x568810
mov eax, ebx
call fcn.00441f68
dec eax
jne 0x5686e1
lea edx, [ebp - 0x2c]
mov eax, 0x568824
call fcn.004c9250
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.004986c4
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 4]
mov ecx, 0x568834
call fcn.0040502c
mov eax, ebx
call fcn.00441aa8
cmp dword [ebp - 4], 0
jne 0x568703
mov edx, dword [0x59243c]
mov edx, dword [edx]
lea eax, [ebp - 4]
mov ecx, 0x568850
call fcn.0040502c
mov eax, dword [ebp - 4]
call fcn.00498774
test al, al
jne 0x568746
mov eax, dword [ebp - 4]
call fcn.004d9574
test al, al
jne 0x568760
mov edx, dword [0x59243c]
mov edx, dword [edx]
lea eax, [ebp - 4]
mov ecx, 0x568850
call fcn.0040502c
mov eax, dword [ebp - 4]
call fcn.004d9574
test al, al
jne 0x568760
mov eax, dword [0x5920c0]
mov byte [eax], 1
jmp 0x568760
mov eax, dword [ebp - 4]
call fcn.004051e0
push eax
call sub.kernel32.dll_GetFileAttributesA
test al, 1
je 0x568760
mov eax, dword [0x5920c0]
mov byte [eax], 1
mov eax, dword [0x5923d0]
mov edx, dword [ebp - 4]
call fcn.00404d58
mov eax, ebx
call fcn.00403e94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x568796
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.00404d28
ret