Function at 0x4a86f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53de70
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x58c758]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 4], 0
call fcn.004a8500
mov esi, eax
add esp, 4
mov dword [ebp - 0x68], esi
test esi, esi
jne 0x4a8750
mov eax, 0xfffff82d
jmp 0x4a89e4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a878f
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_failed_Err_d__s
call fcn.004a80b0
add esp, 0xc
mov eax, 0xfffffc14
jmp 0x4a89e4
push esi
call fcn.004d25d0
add esp, 4
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4a89cb
cmp eax, esi
jb 0x4a89cb
push 0
push 0
sub eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4a89cb
push esi
call fcn.004a9062
add esp, 4
push esi
mov ebx, eax
push 0
push ebx
call fcn.004b0ac0
add esp, 0xc
push 0
lea edx, [ebp - 0x70]
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a89c2
cmp dword [ebp - 0x70], esi
jne 0x4a89c2
lea eax, [esi + esi]
push eax
call fcn.004a9062
add esp, 4
lea ecx, [esi + esi]
push ecx
push 0
push eax
mov dword [ebp - 0x64], eax
call fcn.004b0ac0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
push 1
push eax
push ecx
push ebx
push esi
call fcn.004d2620
add esp, 0x20
cmp eax, 0xffffffff
jne 0x4a8871
mov edx, dword [ebp - 0x6c]
push edx
push str.RSA_public_decrypt_failed__file:_s
call fcn.004a80b0
add esp, 8
push ebx
call fcn.004b2811
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b2811
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004d24b0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4a89e4
push ebx
call fcn.004b2811
mov edx, dword [ebp - 0x68]
push edx
call fcn.004d24b0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x6c]
push edi
push eax
call fcn.004a7a40
add esp, 8
test eax, eax
jne 0x4a88b4
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b2811
add esp, 4
mov eax, 0xfffffc11
jmp 0x4a89e4
push esi
mov eax, edi
call fcn.004a7960
add esp, 4
test al, al
jne 0x4a88d9
mov edx, dword [ebp - 0x64]
push edx
call fcn.004b2811
add esp, 4
mov eax, 0xfffffc11
jmp 0x4a89e4
xor eax, eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
lea eax, [ebp - 0x28]
push eax
mov eax, edi
mov byte [ebp - 0x28], 0
call fcn.004a81c0
add esp, 4
test al, al
jne 0x4a891a
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b2811
add esp, 4
mov eax, 0xfffffc12
jmp 0x4a89e4
mov esi, dword [ebp - 0x64]
mov eax, 0x14
mov ecx, esi
lea edx, [ebp - 0x28]
cmp eax, 4
jb 0x4a89b2
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x4a8941
sub eax, 4
add ecx, 4
add edx, 4
jmp 0x4a8927
push 0x14
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.004a7d60
add esp, 0xc
push 0x14
lea ecx, [ebp - 0x60]
push esi
push ecx
mov byte [ebp - 4], 1
call fcn.004a7d60
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
mov eax, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x48], eax
jae 0x4a897a
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
jae 0x4a8985
lea eax, [ebp - 0x40]
push ecx
push eax
push 0x54ca60
call fcn.004a80b0
add esp, 0xc
push esi
call fcn.004b2811
add esp, 4
lea ecx, [ebp - 0x60]
call fcn.004a3b70
lea ecx, [ebp - 0x44]
call fcn.004a3b70
or eax, 0xffffffff
jmp 0x4a89e4
push esi
call fcn.004b2811
add esp, 4
mov eax, 1
jmp 0x4a89e4
push ebx
call fcn.004b2811
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffc13
jmp 0x4a89e4
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.004b0a79
mov esp, ebp
pop ebp
ret