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

Disassembly:
push 0x6c
mov eax, 0x1004241c
call fcn.10021f0e
mov eax, dword [ebp + 8]
push 0xf
pop esi
xor ebx, ebx
push ebx
mov edi, ecx
push 0x1004a756
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.1000cffa
mov dword [ebp - 4], ebx
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x70], ebx
jb 0x1001b5de
mov edi, dword [edi]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x120089
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x74], eax
cmp eax, ebx
je 0x1001b644
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 4]
push eax
call fcn.1001d8ce
pop ecx
mov dword [ebp - 0x78], eax
cmp eax, ebx
je 0x1001b63b
push ebx
lea ecx, [ebp - 0x6c]
push ecx
push edi
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x78]
lea ecx, [ebp - 0x48]
call fcn.1000d06f
push dword [ebp - 0x78]
call fcn.1001d894
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], ebx
je 0x1001b888
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push str.name
mov byte [ecx], bl
call fcn.1000d06f
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1001af39
mov edi, dword [ebp - 0x68]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.1000cf26
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.10003236
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.connectionType
mov byte [ecx], bl
call fcn.1000d06f
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1001af39
add edi, 0x1c
mov esi, eax
mov byte [ebp - 4], 2
call fcn.1000cf26
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.10003236
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.authentication
mov byte [ecx], bl
call fcn.1000d06f
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1001af39
mov edi, dword [ebp - 0x68]
add edi, 0x38
mov esi, eax
mov byte [ebp - 4], 3
call fcn.1000cf26
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.10003236
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.encryption
mov byte [ecx], bl
call fcn.1000d06f
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1001af39
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x68]
add edi, 0x54
mov esi, eax
call fcn.1000cf26
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.10003236
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.keyType
mov byte [ecx], bl
call fcn.1000d06f
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1001af39
mov edi, dword [ebp - 0x68]
add edi, 0x70
mov esi, eax
mov byte [ebp - 4], 5
call fcn.1000cf26
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.10003236
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.keyMaterial
mov byte [ecx], bl
call fcn.1000d06f
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1001af39
mov edi, dword [ebp - 0x68]
add edi, 0x8c
mov esi, eax
mov byte [ebp - 4], 6
call fcn.1000cf26
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.10003236
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.protected
mov byte [ecx], bl
call fcn.1000d06f
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.1001af39
mov eax, str.true
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.100166e3
test eax, eax
jne 0x1001b866
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.1001b41b
mov edi, dword [ebp - 0x68]
add edi, 0xa8
mov esi, eax
mov byte [ebp - 4], 8
call fcn.1000cf26
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10003236
jmp 0x1001b878
mov ecx, dword [ebp - 0x68]
push 0xffffffffffffffff
push ebx
push edi
add ecx, 0xa8
call fcn.10002df7
xor eax, eax
inc eax
push ebx
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x70], eax
call fcn.10003236
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.10003236
mov eax, dword [ebp - 0x70]
call fcn.10021f58
ret 4