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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506e6f
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x294
mov eax, dword [0x5732cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x298], ecx
mov dword [ebp - 4], 0
push 0x468ad0
call fcn.004dbbc8
add esp, 4
mov byte [ebp - 0x129], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x138]
call fcn.0041ad50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call fcn.0041cde0
add eax, 1
mov dword [ebp - 0x134], eax
xor ecx, ecx
mov eax, dword [ebp - 0x134]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004da8e1
add esp, 4
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x134]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x130]
push edx
call fcn.004dba80
add esp, 0xc
lea ecx, [ebp - 0x138]
call fcn.0041cde0
push eax
lea ecx, [ebp - 0x138]
call fcn.00415d40
push eax
mov eax, dword [ebp - 0x130]
push eax
call fcn.004dd607
add esp, 0xc
mov ecx, dword [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x13c]
call fcn.00428f10
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x280], edx
mov eax, dword [ebp - 0x280]
push eax
call fcn.004db910
add esp, 4
mov ecx, dword [ebp - 0x298]
movzx edx, byte [ecx + 0x10]
test edx, edx
jne 0x4817d0
jmp 0x481b8f
push 0
lea ecx, [ebp - 0x13c]
call fcn.0042d950
movzx eax, al
test eax, eax
je 0x4817e9
jmp 0x481b8f
cmp dword [ebp + 0xc], 0
je 0x4817f9
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
test edx, edx
jne 0x4817fe
jmp 0x481b8f
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
and ecx, 1
je 0x48182c
push 0x80
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x13c]
call fcn.00415d40
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov dword [ebp - 0x140], eax
push 0
push 0
mov eax, dword [ebp - 0x140]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00415d40
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00481e50
mov byte [ebp - 4], 4
push 0x5773f8
mov ecx, dword [ebp - 0x298]
call fcn.0040e620
push eax
mov ecx, dword [ebp - 0x298]
call fcn.00428d30
push eax
lea ecx, [ebp - 0x188]
call fcn.004849b0
mov byte [ebp - 4], 5
push 0x5c
call fcn.004dc69d
add esp, 4
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x288], 0
je 0x4818d1
push 4
push 0
lea ecx, [ebp - 0x188]
push ecx
mov ecx, dword [ebp - 0x288]
call fcn.004065d0
mov dword [ebp - 0x29c], eax
jmp 0x4818db
mov dword [ebp - 0x29c], 0
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x284], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x48196e
push 0x51fd3c
lea ecx, [ebp - 0x84]
call fcn.00401880
mov byte [ebp - 4], 7
push 0x51fd78
lea ecx, [ebp - 0xa0]
call fcn.00401880
mov byte [ebp - 4], 8
push 0xffffffffffffffff
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0xa0]
push edx
push 6
lea ecx, [ebp - 0x68]
call fcn.00481d30
push 0x562540
lea eax, [ebp - 0x68]
push eax
call fcn.004db4d1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa0]
call fcn.004018f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x84]
call fcn.004018f0
mov ecx, dword [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x1c4]
call fcn.00404080
push 0x14
call fcn.004dc69d
add esp, 4
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 9
cmp dword [ebp - 0x290], 0
je 0x4819b6
push 1
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x290]
call fcn.00481f30
mov dword [ebp - 0x2a0], eax
jmp 0x4819c0
mov dword [ebp - 0x2a0], 0
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x18c], ecx
cmp dword [ebp - 0x18c], 0
jne 0x481a59
push str.new_CryptoPP::FileSink__sEncryptedOutputFilePath_
lea ecx, [ebp - 0x10c]
call fcn.00401880
mov byte [ebp - 4], 0xa
push 0x51fdc0
lea ecx, [ebp - 0x128]
call fcn.00401880
mov byte [ebp - 4], 0xb
push 0xffffffffffffffff
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x128]
push eax
push 6
lea ecx, [ebp - 0xf0]
call fcn.00481d30
push 0x562540
lea ecx, [ebp - 0xf0]
push ecx
call fcn.004db4d1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x128]
call fcn.004018f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10c]
call fcn.004018f0
mov edx, dword [ebp - 0x18c]
push edx
mov eax, dword [ebp - 0x148]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x148]
mov eax, dword [edx + 0xac]
call eax
lea ecx, [ebp - 0x1c4]
call fcn.0040df90
mov byte [ebp - 0x129], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x188]
call fcn.00482080
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c4]
call fcn.0040e1c0
jmp 0x481b88
mov dword [ebp - 4], 2
mov dl, byte [ebp - 0x129]
mov byte [ebp - 0x291], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00415b40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x138]
call fcn.00416630
mov al, byte [ebp - 0x291]
jmp 0x481d0c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004db901
mov esp, ebp
pop ebp
ret 8