Function at 0x4f34e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x48], 0
jne 0x4f3786
mov dword [edi + 0x48], 1
add edi, 8
mov ecx, edi
call dword [sym.imp.libCryptoLayer.module_public:_unsigned_long_long_unsigned___int64____thiscall_CFileEnc::SeekToBegin_void_]
mov ebx, dword [sym.imp.libCryptoLayer.module_public:_unsigned_long_long_unsigned___int64____thiscall_CFileEnc::GetLength_void_]
mov ecx, edi
call ebx
or eax, edx
je 0x4f3526
mov esi, dword [0x5c6f30]
push 0
call fcn.004ce510
mov ecx, edi
call dword [sym.imp.libCryptoLayer.module_public:_unsigned_long_long_unsigned___int64____thiscall_CFileEnc::GetPosition_void_]
mov ecx, edi
mov dword [esp + 0x10], eax
mov esi, edx
call ebx
cmp esi, edx
ja 0x4f3770
jb 0x4f354c
cmp dword [esp + 0x10], eax
jae 0x4f3770
xor eax, eax
push 0x48
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x48]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x24
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x48], 0x48
call dword [sym.imp.libCryptoLayer.module_public:_unsigned_long_int___thiscall_CFileEnc::Read_void___unsigned_long_int_]
cmp dword [esp + 0x34], 0xaaaaaaaa
jne 0x4f374a
mov eax, dword [esp + 0x28]
xor ebx, ebx
inc eax
mov edx, 2
mul edx
seto bl
neg ebx
or ebx, eax
push ebx
call sub.mfc90u.dll_new__
mov esi, eax
add esp, 4
test esi, esi
je 0x4f35dd
push ebx
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x4c], esi
jmp 0x4f35e5
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x2c]
xor ebx, ebx
inc eax
mov ecx, 2
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call sub.mfc90u.dll_new__
mov esi, eax
add esp, 4
test esi, esi
je 0x4f361b
push ebx
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x50], esi
jmp 0x4f3623
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], edx
test eax, eax
je 0x4f3675
xor ebx, ebx
inc eax
mov ecx, 2
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call sub.mfc90u.dll_new__
mov esi, eax
add esp, 4
test esi, esi
je 0x4f366d
push ebx
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x64], esi
jmp 0x4f3675
mov dword [esp + 0x64], 0
mov eax, dword [esp + 0x24]
xor ebx, ebx
inc eax
mov edx, 2
mul edx
seto bl
neg ebx
or ebx, eax
push ebx
call sub.mfc90u.dll_new__
mov esi, eax
add esp, 4
test esi, esi
je 0x4f36a7
push ebx
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x4f36a9
xor esi, esi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x70], eax
lea eax, [edx + edx]
push eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x78], ecx
push esi
mov esi, dword [sym.imp.libCryptoLayer.module_public:_unsigned_long_int___thiscall_CFileEnc::Read_void___unsigned_long_int_]
mov ecx, edi
call esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4f36e5
mov edx, dword [esp + 0x68]
lea ecx, [eax + eax]
push ecx
push edx
mov ecx, edi
call esi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
lea ecx, [eax + eax]
push ecx
push edx
mov ecx, edi
call esi
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x50]
lea ecx, [eax + eax]
push ecx
push edx
mov ecx, edi
call esi
lea ecx, [esp + 0x40]
call fcn.004ce4b0
mov eax, dword [esp + 0x4c]
push eax
call sub.mfc90u.dll_delete__
mov ecx, dword [esp + 0x54]
add esp, 4
push ecx
call sub.mfc90u.dll_delete__
mov edx, dword [esp + 0x6c]
add esp, 4
push edx
call sub.mfc90u.dll_delete__
mov eax, dword [esp + 0x68]
add esp, 4
push eax
call sub.mfc90u.dll_delete__
mov ebx, dword [sym.imp.libCryptoLayer.module_public:_unsigned_long_long_unsigned___int64____thiscall_CFileEnc::GetLength_void_]
add esp, 4
mov ecx, edi
call dword [sym.imp.libCryptoLayer.module_public:_unsigned_long_long_unsigned___int64____thiscall_CFileEnc::GetPosition_void_]
mov ecx, edi
mov dword [esp + 0x10], eax
mov esi, edx
call ebx
cmp esi, edx
jb 0x4f354c
ja 0x4f3770
cmp dword [esp + 0x10], eax
jb 0x4f354c
push 0
push 0
mov ecx, edi
call dword [sym.imp.libCryptoLayer.module_public:_long_int___thiscall_CFileEnc::TruncateFile_long_long___int64__]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x48], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4