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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax]
push edi
xor edi, edi
push ebx
mov dword [0x422254], edi
call fcn.00404bad
cmp eax, 2
pop ecx
je 0x404f51
cmp eax, 1
jne 0x404e8c
cmp dword [ebp + 0x14], edi
je 0x404e92
cmp dword [0x422e08], eax
je 0x404f51
cmp dword [ebp + 0x20], 2
je 0x404f51
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x404c66
cmp dword [0x422e0c], edi
jne 0x404c63
cmp dword [ebp + 0x20], edi
je 0x404f51
push 1
pop edi
mov eax, dword [0x422e08]
test eax, eax
jle 0x404d38
cmp dword [ebp + 0x20], 0
jne 0x404d38
test esi, esi
jne 0x404d38
push 2
pop esi
cmp eax, esi
je 0x404cb3
cmp eax, 4
je 0x404cb3
push dword [0x420d28]
mov dword [0x420ce0], ebx
test edi, edi
jne 0x404d16
push 1
jmp 0x404d17
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x404d38
push ebx
push dword [ebp + 8]
call fcn.004049c5
pop ecx
test eax, eax
pop ecx
je 0x404ccc
push 1
pop eax
mov dword [0x422254], eax
jmp 0x404cee
push ebx
push dword [ebp + 8]
call fcn.00404adc
pop ecx
test eax, eax
pop ecx
je 0x404ce5
push 1
pop eax
mov dword [0x422254], eax
jmp 0x404cea
mov eax, dword [0x422254]
test eax, eax
je 0x404cfe
cmp dword [0x422e08], esi
je 0x404f51
test eax, eax
jne 0x404d02
test edi, edi
je 0x404d38
push dword [0x420d28]
mov dword [0x420ce0], ebx
test eax, eax
je 0x404d16
push 3
jmp 0x404d17
push esi
call fcn.004048f6
pop ecx
cmp eax, 7
pop ecx
je 0x404f51
cmp eax, 0x67
je 0x404ca5
cmp eax, esi
je 0x404f17
cmp dword [0x422e10], 0
je 0x404dc0
push 0x5c
push ebx
call fcn.00413b80
cmp dword [0x420ce8], 0
pop ecx
pop ecx
mov edi, eax
mov esi, 0x4225c0
jne 0x404d83
push esi
call fcn.00404425
test eax, eax
pop ecx
jne 0x404d79
mov dword [0x420ce0], esi
push dword [0x420d28]
push 4
jmp 0x404f10
mov dword [0x420ce8], 1
lea eax, [ebp - 0x2f8]
push esi
push eax
call fcn.00413bb0
pop ecx
test edi, edi
pop ecx
je 0x404f02
inc edi
lea eax, [ebp - 0x2f8]
push edi
push eax
call fcn.00403d6d
lea eax, [ebp - 0x2f8]
push eax
push ebx
call fcn.00403a23
add esp, 0x10
test eax, eax
je 0x404f02
push ebx
call fcn.00404b83
test eax, eax
pop ecx
je 0x404e8c
cmp dword [0x420cbc], 0
push dword [ebp + 8]
jne 0x404e04
call fcn.00413dd0
push ebx
mov esi, eax
call fcn.00413dd0
lea eax, [esi + eax + 3]
push eax
mov dword [0x420cc4], eax
call fcn.004132a2
add esp, 0xc
mov dword [0x420cbc], eax
and byte [eax], 0
jmp 0x404e34
call fcn.00413dd0
push ebx
mov esi, eax
call fcn.00413dd0
add eax, dword [0x420cc4]
lea eax, [eax + esi + 3]
push eax
mov dword [0x420cc4], eax
push dword [0x420cbc]
call fcn.0041450a
add esp, 0x10
mov dword [0x420cbc], eax
push dword [ebp + 8]
push dword [0x420cbc]
call fcn.00413bc0
push 0x41d3f0
push dword [0x420cbc]
call fcn.00413bc0
push ebx
push dword [0x420cbc]
call fcn.00413bc0
push 0x41d3ec
push dword [0x420cbc]
call fcn.00413bc0
add esp, 0x20
cmp dword [ebp + 0x18], 0
je 0x404f51
push dword [ebp + 0x1c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x404f51
cmp dword [ebp + 0x14], 0
jne 0x404ead
push ebx
call fcn.00404b83
test eax, eax
pop ecx
je 0x404ead
push dword [0x420d28]
mov dword [0x420ce0], ebx
push 5
jmp 0x404f10
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.00413bb0
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.00413b80
add esp, 0x10
test eax, eax
je 0x404ed2
and byte [eax], 0
lea eax, [ebp - 0x104]
push eax
call fcn.00404425
test eax, eax
pop ecx
jne 0x404ef3
lea eax, [ebp - 0x104]
mov dword [0x420ce0], eax
jmp 0x404d6c
push ebx
push dword [ebp + 8]
call fcn.00403a23
pop ecx
test eax, eax
pop ecx
jne 0x404f1b
push dword [0x420d28]
mov dword [0x420ce0], ebx
push 0xb
call fcn.004048f6
pop ecx
pop ecx
xor eax, eax
jmp 0x404f54
cmp dword [ebp + 0x18], 0
je 0x404f2b
push dword [ebp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 8]
call fcn.0040398e
test eax, eax
jne 0x404f51
cmp dword [0x423244], eax
je 0x404f51
cmp dword [0x423248], 3
jne 0x404f51
push dword [ebp + 8]
call fcn.00413d9e
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret