Function at 0x5075e8
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x69f2a0
call fcn.006375a8
sub esp, 0x74
push ebx
mov bl, byte [ebp + 0x68]
push esi
or esi, 0xffffffff
mov dword [ebp + 0x50], esi
push edi
cmp bl, 1
je 0x507613
cmp bl, 4
je 0x507613
xor bh, bh
jmp 0x507615
mov bh, 1
and dword [ebp - 0x80], 0
lea eax, [ebp - 0x6c]
push 0x48
push 0
push eax
mov byte [ebp + 0x57], bh
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x74], 3
mov dword [ebp - 0x70], 0xb
call fcn.00651ed0
mov ecx, dword [ebp + 0x6c]
add esp, 0xc
mov edi, dword [ebp + 0x64]
movzx eax, bl
mov ecx, dword [ecx]
push edi
mov eax, dword [ebp + eax*4 - 0x80]
mov dword [ebp + 0x58], eax
lea eax, [ebp + 0x30]
push eax
call fcn.0050344a
and dword [ebp - 4], 0
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0x18]
call fcn.0042615e
mov eax, dword [ebp + 0x6c]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
mov eax, dword [eax]
add eax, 0x40
push eax
call fcn.0042615e
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 2
jae 0x507699
lea eax, [ebp + 0x18]
push eax
call fcn.0045eb30
test al, al
jne 0x5076f2
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x5076af
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp]
push eax
call fcn.00470ce5
push eax
lea ecx, [ebp + 0x18]
call fcn.0042623d
push 0
push 1
lea ecx, [ebp]
call fcn.004267c2
call fcn.00470891
push eax
lea eax, [ebp]
push eax
call fcn.00427922
push eax
lea ecx, [ebp - 0x24]
call fcn.0042623d
push 0
push 1
lea ecx, [ebp]
call fcn.004267c2
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
jae 0x5076fe
lea eax, [ebp + 0x18]
push eax
call fcn.00460f19
cmp dword [edi + 0xc], edx
jb 0x50771e
ja 0x507710
cmp dword [edi + 8], eax
jbe 0x50771e
mov eax, dword [ebp + 0x70]
mov dword [eax], 0xdf
jmp 0x5079ee
and dword [ebp + 0x48], 0
and dword [ebp + 0x4c], 0
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x507732
lea eax, [ebp + 0x30]
lea ecx, [ebp + 0x48]
push ecx
push eax
call fcn.0068bf78
test al, al
je 0x507750
mov eax, dword [ebp + 0x48]
cmp eax, dword [edi + 8]
jne 0x507750
mov eax, dword [ebp + 0x4c]
cmp eax, dword [edi + 0xc]
je 0x507770
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x4c], esi
test bh, bh
je 0x5077fa
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x50776a
lea eax, [ebp + 0x30]
push eax
call fcn.00460273
test bh, bh
je 0x5077fa
cmp byte [0x7abd7c], 0
jne 0x5077a1
cmp byte [0x7abd7b], 0
je 0x5077a8
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
jae 0x507796
lea eax, [ebp + 0x18]
push eax
call fcn.0052803c
cmp eax, 1
jne 0x5077a8
mov dword [ebp + 0x58], 0xb
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x5077b4
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, esi
je 0x5077da
test al, 1
je 0x5077da
cmp dword [ebp + 0x44], 8
mov ecx, dword [ebp + 0x30]
jae 0x5077cf
lea ecx, [ebp + 0x30]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp byte [0x7abd7a], 0
jne 0x5077ed
mov eax, dword [ebp + 0x48]
and eax, dword [ebp + 0x4c]
cmp eax, esi
jne 0x50784b
cmp bl, 4
je 0x50784b
push 0xa
pop edx
mov dword [ebp + 0x58], edx
jmp 0x50784e
cmp bl, 3
jne 0x50784b
mov eax, dword [ebp + 0x48]
cmp eax, dword [edi + 8]
jne 0x50780f
mov eax, dword [ebp + 0x4c]
cmp eax, dword [edi + 0xc]
je 0x50784b
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x50781b
lea eax, [ebp + 0x30]
push eax
call fcn.00460273
push dword [ebp + 0x78]
mov ebx, dword [ebp + 0x70]
push 0
push ebx
push dword [ebp + 0x6c]
push 1
push edi
call fcn.005075e8
mov ecx, eax
mov dword [ebp + 0x50], ecx
cmp ecx, esi
jne 0x507872
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx], eax
jmp 0x507928
mov edx, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x50]
cmp ecx, esi
jne 0x507872
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x507861
lea eax, [ebp + 0x30]
push 0x80
push edx
push eax
call fcn.0045fa00
mov ecx, eax
mov dword [ebp + 0x50], ecx
mov eax, dword [0x7abd80]
mov dword [ebp + 0x64], eax
cmp ecx, esi
jne 0x507978
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x50791d
call ebx
cmp dword [ebp + 0x58], 0xa
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
jne 0x5078df
mov eax, dword [ebp + 0x48]
cmp eax, dword [edi + 8]
jne 0x5078b2
mov eax, dword [ebp + 0x4c]
cmp eax, dword [edi + 0xc]
jne 0x5078b2
xor ecx, ecx
inc ecx
jmp 0x5078b5
push 6
pop ecx
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x58], ecx
jae 0x5078c4
lea eax, [ebp + 0x30]
push 0x80
push ecx
push eax
call fcn.0045fa00
mov dword [ebp + 0x50], eax
call ebx
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x50]
jmp 0x50790e
cmp eax, 0x20
jne 0x507930
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x5078fb
lea eax, [ebp + 0x30]
push 0x80
push dword [ebp + 0x58]
push eax
call fcn.0045fa00
mov ecx, eax
mov dword [ebp + 0x50], ecx
mov eax, dword [ebp + 0x64]
dec eax
mov dword [ebp + 0x64], eax
cmp ecx, esi
je 0x507888
cmp ecx, esi
jne 0x507978
call ebx
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
mov esi, dword [ebp + 0x50]
jmp 0x5079ee
cmp byte [ebp + 0x68], 3
je 0x50793c
cmp byte [ebp + 0x74], 0
je 0x50794d
cmp eax, 0x490
je 0x507968
cmp eax, 2
je 0x507968
cmp eax, 3
je 0x507968
cmp dword [ebp + 0x44], 8
mov ecx, dword [ebp + 0x30]
jae 0x507959
lea ecx, [ebp + 0x30]
push eax
push ecx
push str.Error_opening___s_:__E
call fcn.00479c3c
add esp, 0xc
mov eax, dword [ebp + 0x70]
cmp dword [eax], 0
jne 0x5079ee
mov dword [eax], 2
jmp 0x5079ee
mov bl, byte [ebp + 0x57]
test bl, bl
je 0x5079e2
mov eax, dword [ebp + 0x48]
cmp eax, dword [edi + 8]
jne 0x50798f
mov eax, dword [ebp + 0x4c]
cmp eax, dword [edi + 0xc]
je 0x5079c8
mov eax, dword [ebp + 0x6c]
push dword [ebp + 0x78]
mov eax, dword [eax]
cmp dword [eax + 0xd8], 0
lea eax, [ebp + 0x30]
setne byte [ebp + 0x68]
push dword [ebp + 0x68]
push dword [ebp + 0x70]
push dword [ebp + 0x58]
push edi
push eax
push ecx
call fcn.0050a2e2
test eax, eax
jne 0x5079c5
lea eax, [ebp + 0x50]
push eax
call fcn.0045f990
jmp 0x5079ee
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
cmp byte [eax + 0xd0], 0
jne 0x5079e2
lea eax, [ebp + 0x30]
push eax
call fcn.005435ed
mov ecx, dword [ebp + 0x50]
mov al, byte [edi + 0x66]
mov esi, ecx
and al, 0xfe
or al, bl
mov byte [edi + 0x66], al
xor ebx, ebx
lea ecx, [ebp - 0x24]
push ebx
push 1
call fcn.004267c2
push ebx
push 1
lea ecx, [ebp + 0x18]
call fcn.004267c2
push ebx
push 1
lea ecx, [ebp + 0x30]
call fcn.004267c2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x5c]
pop ebp
ret 0x18