Function at 0x4fd330
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
mov eax, 0x1060
call fcn.0051bb00
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x105c], eax
mov eax, dword [esp + 0x1068]
push ebx
push ebp
mov ebp, dword [esp + 0x106c]
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x30], eax
mov eax, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
lea ecx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x4fd380
sub eax, ecx
sar eax, 1
push 3
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], eax
push 0x100081
push ecx
mov ebx, 1
mov eax, ebp
call fcn.004fbd20
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x4fd3df
push 0x80000000
push ebp
call fcn.004fc570
push 3
lea edx, [esp + 0x20]
push 0x100081
push edx
mov eax, ebp
call fcn.004fbd20
mov esi, eax
add esp, 0x14
test esi, esi
jl 0x4fd665
test byte [esp + 0x107c], 2
je 0x4fd4a9
push edi
call fcn.004fc600
add esp, 4
test al, al
je 0x4fd4a9
push 0x2e
push edi
call fcn.00508605
add esp, 8
test eax, eax
jne 0x4fd414
mov eax, dword [esp + 0x2c]
lea eax, [edi + eax*2]
sub eax, edi
sar eax, 1
mov ebp, eax
mov eax, dword [esp + 0x2c]
xor ecx, ecx
add eax, 0xa
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00507d92
mov ebx, eax
add esp, 4
mov dword [esp + 0x3c], ebx
test ebx, ebx
je 0x4fd4a9
mov edx, ebx
mov eax, edi
sub edx, edi
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4fd450
mov eax, str.__u_
lea edx, [ebx + ebp*2]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4fd470
lea eax, [edi + ebp*2]
lea edx, [ebx + ebp*2 + 8]
sub edx, eax
jmp 0x4fd490
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4fd490
or dword [esp + 0x107c], 1
mov edi, ebx
test byte [esp + 0x107c], 1
je 0x4fd541
mov eax, dword [esp + 0x2c]
xor ecx, ecx
add eax, 0x10
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00507d92
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x4fd57f
mov ebp, 1
mov edx, dword [esp + 0x18]
push ebp
push edi
call fcn.00401bb0
push 1
lea eax, [esp + 0x28]
push 0x100102
push eax
mov eax, dword [esp + 0x2c]
mov ebx, 2
call fcn.004fbd20
mov esi, eax
add esp, 0x14
test esi, esi
jge 0x4fd51e
inc ebp
cmp ebp, 0x64
jl 0x4fd4e8
jmp 0x4fd57f
mov edx, dword [esp + 0x30]
test edx, edx
je 0x4fd57f
mov eax, dword [esp + 0x18]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4fd530
jmp 0x4fd57f
push 1
lea ecx, [esp + 0x20]
push 0x100102
push ecx
xor ebx, ebx
mov eax, edi
call fcn.004fbd20
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x4fd650
mov edx, dword [esp + 0x30]
test edx, edx
je 0x4fd57f
mov eax, edi
sub edx, edi
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4fd570
mov ebx, dword [esp + 0x14]
test esi, esi
jl 0x4fd654
push 4
push 0x28
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x40]
push eax
push ebx
call dword [sym.imp.Ntdll.dll_NtQueryInformationFile]
mov ebp, dword [sym.imp.Ntdll.dll_NtReadFile]
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x1000
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
push ebx
call ebp
mov esi, eax
test esi, esi
jl 0x4fd62b
jmp 0x4fd5d0
mov edi, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edi
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.Ntdll.dll_NtWriteFile]
mov esi, eax
test esi, esi
jl 0x4fd62b
add dword [esp + 0x20], edi
push 0
lea edx, [esp + 0x24]
adc dword [esp + 0x28], 0
push edx
push 0x1000
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0
push ebx
call ebp
mov esi, eax
test esi, esi
jge 0x4fd5d0
cmp esi, 0xc0000011
jne 0x4fd635
xor esi, esi
mov ecx, dword [esp + 0x1c]
push 4
push 0x28
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.Ntdll.dll_NtSetInformationFile]
jmp 0x4fd654
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4fd669
push eax
call dword [sym.imp.Ntdll.dll_NtClose]
jmp 0x4fd669
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4fd674
push ebx
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4fd685
push eax
call fcn.00507bce
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4fd696
push eax
call fcn.00507bce
add esp, 4
mov ecx, dword [esp + 0x106c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005078c8
add esp, 0x1060
ret