Function at 0x4a5110
Capabilities:
Enumerate pe sections
Get volume information via ioctl
Read file on windows

Disassembly:
sub esp, 0xbc
push ebp
mov ebp, dword [esp + 0xd0]
push ebp
call fcn.00498a90
mov edx, dword [esp + 0xc4]
push 0
lea eax, [esp + 0x2c]
push eax
push 0x60
lea ecx, [esp + 0x6c]
push ecx
push 0
push 0
push 0x90064
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a595a
mov eax, dword [esp + 0x90]
cmp eax, 0x2a
jbe 0x4a5952
push ebx
push esi
xor ecx, ecx
add eax, 0xf
push edi
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x44], eax
call fcn.004a4890
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0xd8]
mov edi, dword [esp + 0xd4]
push 0
mov ebx, eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0xd8]
push ecx
push ebx
push 8
lea edx, [esp + 0x58]
push edx
push 0x90068
and esi, 0xffff
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a5891
jmp 0x4a51e0
mov ecx, dword [ebx]
cmp ecx, edi
jne 0x4a5922
mov edx, dword [ebx + 4]
cmp edx, esi
jne 0x4a5922
cmp dword [ebx + 0xc], 0x454c4946
mov eax, dword [esp + 0x9c]
lea esi, [ebx + 0xc]
lea edx, [esi + eax]
mov dword [esp + 0x30], edx
jne 0x4a57a5
test byte [esi + 0x16], 1
je 0x4a579e
cmp dword [esp + 0x2c], 0
jne 0x4a524a
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edi, eax
or edi, ecx
je 0x4a5242
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x2c], 1
jmp 0x4a524a
mov dword [esp + 0x1c], 1
movzx ebx, word [esi + 0x14]
add ebx, esi
cmp ebx, esi
mov dword [esp + 0x18], ebx
jb 0x4a57b7
jmp 0x4a5264
mov edx, dword [esp + 0x30]
lea edi, [ebx + 0x10]
cmp edi, edx
ja 0x4a57b7
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x4a57b7
mov ecx, 0x10
cmp dword [ebx + 4], ecx
jb 0x4a5786
cmp byte [ebx + 9], 0
jne 0x4a5767
sub eax, ecx
je 0x4a5704
sub eax, ecx
je 0x4a5316
sub eax, 0x60
jne 0x4a5767
test byte [esi + 0x16], 2
jne 0x4a5767
test byte [ebx + 8], 1
je 0x4a52ec
lea ecx, [ebx + 0x48]
cmp ecx, edx
ja 0x4a5767
mov edx, dword [edi]
or edx, dword [edi + 4]
jne 0x4a5767
mov eax, dword [ebx + 0x30]
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x34]
or eax, 2
mov dword [ebp + 4], ecx
mov dword [esp + 0x10], eax
cmp eax, 3
jmp 0x4a5761
lea eax, [ebx + 0x16]
cmp eax, edx
ja 0x4a5767
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
or eax, 2
mov dword [ebp], ecx
mov dword [ebp + 4], 0
mov dword [esp + 0x10], eax
cmp eax, 3
jmp 0x4a5761
movzx edx, byte [ebx + 8]
push edx
push str.attribute_list__02x_n
call fcn.0048f0a0
add esp, 8
cmp dword [esp + 0x14], 0
jne 0x4a5767
test byte [esi + 0x16], 2
jne 0x4a5767
test byte [ebx + 8], 1
je 0x4a5661
movzx eax, word [ebx + 0xc]
mov ecx, dword [ebx + 4]
push eax
push ecx
push str.len__u_flags__04x_n
call fcn.0048f0a0
add esp, 0xc
test word [ebx + 0xc], 0xc001
jne 0x4a5767
lea edx, [ebx + 0x48]
cmp edx, dword [esp + 0x30]
ja 0x4a5767
mov eax, dword [edi]
or eax, dword [edi + 4]
jne 0x4a5767
movzx ecx, word [ebx + 0x20]
mov esi, dword [ebx + 4]
lea eax, [ecx + ebx]
sub esi, ecx
add esi, eax
lea edx, [eax + 1]
cmp edx, esi
ja 0x4a5767
movzx ecx, byte [eax]
test ecx, ecx
je 0x4a5767
mov eax, ecx
and eax, 0xf
sar ecx, 4
cmp eax, 8
mov edi, ecx
jg 0x4a5767
cmp edi, 8
jg 0x4a5767
lea ebp, [eax + edx]
cmp ebp, esi
ja 0x4a5767
xor ecx, ecx
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
push edx
lea ecx, [esp + 0x58]
push ecx
call fcn.00549c50
xor eax, eax
add esp, 0xc
cmp edi, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
je 0x4a5767
lea eax, [edi + ebp]
cmp eax, esi
ja 0x4a5767
test byte [eax - 1], 0x80
push edi
push ebp
je 0x4a541c
or eax, 0xffffffff
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push edx
jmp 0x4a5421
lea eax, [esp + 0x28]
push eax
call fcn.00549c50
mov ebp, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
add esp, 0xc
push ebp
push ebx
push esi
push edi
push str.mapping_pair_cluster_offset:__I64d__cluster_count:__I64u_n
call fcn.0048f0a0
mov ecx, dword [esp + 0xac]
add esp, 0x14
push 0
push esi
push edi
push 0
push ecx
call fcn.0054a100
push edx
mov edx, dword [esp + 0xd8]
push eax
push edx
call fcn.004af390
test eax, eax
je 0x4a5633
mov eax, dword [esp + 0x9c]
push eax
call fcn.004a4890
mov ecx, dword [esp + 0x98]
push ebp
push ebx
push 0
push ecx
mov edi, eax
call fcn.0054a100
mov ecx, dword [esp + 0x9c]
mov esi, eax
xor eax, eax
cmp edx, eax
jb 0x4a54af
ja 0x4a54a9
cmp esi, ecx
jbe 0x4a54af
mov esi, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xd0]
push 0
lea edx, [esp + 0x6c]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a560b
mov ebx, dword [esp + 0xd4]
mov ebp, dword [esp + 0xd8]
add esi, edi
mov dword [esp + 0x60], esi
mov esi, edi
jmp 0x4a54f0
lea ecx, [esi + 0x1a]
cmp ecx, dword [esp + 0x60]
ja 0x4a5624
cmp word [esi + 4], 0x1a
jb 0x4a55bd
cmp dword [esi], 0xffffffff
je 0x4a5624
push ebp
push ebx
push str.this_frn__016I64x_n
call fcn.0048f0a0
mov edx, dword [esi]
push edx
push str.al_type__u_n
call fcn.0048f0a0
movzx eax, word [esi + 4]
push eax
push str.al_rl__u_n
call fcn.0048f0a0
movzx ecx, byte [esi + 6]
push ecx
push str.al_nl__u_n
call fcn.0048f0a0
movzx edx, byte [esi + 7]
push edx
push str.al_o2n__u_n
call fcn.0048f0a0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
push str.al_svcn__I64u_n
call fcn.0048f0a0
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edx
push eax
push str.al_bfrn__016I64x_n
call fcn.0048f0a0
movzx ecx, word [esi + 0x18]
add esp, 0x44
push ecx
push str.al_aid__u_n
call fcn.0048f0a0
add esp, 8
cmp dword [esi], 0x80
jne 0x4a55a0
mov edx, dword [esi + 8]
or edx, dword [esi + 0xc]
je 0x4a55c9
movzx eax, word [esi + 4]
add esi, eax
cmp esi, edi
jae 0x4a54f0
push edi
call fcn.004a48d0
mov ebx, dword [esp + 0x18]
jmp 0x4a5767
movzx ecx, word [esi + 4]
push ecx
push str.bad_al_len__u_n
jmp 0x4a5617
mov eax, dword [esi + 0x10]
cmp ebx, eax
mov ecx, dword [esi + 0x14]
jne 0x4a55d7
cmp ebp, ecx
je 0x4a5624
push ecx
push eax
push str._NTFS_ATTRIBUTE_TYPE_DATA_in__016I64x_n
call fcn.0048f0a0
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
add esp, 0xc
push edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], 1
call fcn.004a48d0
mov ebx, dword [esp + 0x18]
jmp 0x4a5767
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.read_size__d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
push edi
call fcn.004a48d0
mov ebx, dword [esp + 0x18]
jmp 0x4a5767
mov ecx, dword [esp + 0x98]
push esi
push edi
push 0
push ecx
call fcn.0054a100
push edx
push eax
push str.bad_file_pos__I64u_n
push 0xffff0000
call fcn.0048f0c0
mov ebx, dword [esp + 0x28]
add esp, 0x10
jmp 0x4a5767
mov edx, dword [esp + 0x30]
lea eax, [ebx + 0x16]
cmp eax, edx
ja 0x4a5767
movzx esi, word [ebx + 0x14]
add esi, ebx
cmp esi, ebx
jb 0x4a5767
mov edi, edi
lea ecx, [esi + 0x1a]
cmp ecx, edx
ja 0x4a5767
movzx ecx, word [esi + 4]
cmp cx, 0x1a
jb 0x4a5767
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a5767
cmp eax, 0x80
jne 0x4a56b3
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x4a56c1
movzx ecx, cx
add esi, ecx
cmp esi, ebx
jae 0x4a5680
jmp 0x4a5767
mov eax, dword [esi + 0x10]
cmp dword [esp + 0xd4], eax
mov ecx, dword [esi + 0x14]
jne 0x4a56dd
cmp dword [esp + 0xd8], ecx
je 0x4a5767
push ecx
push eax
push str._NTFS_ATTRIBUTE_TYPE_DATA_in__016I64x_n
call fcn.0048f0a0
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
add esp, 0xc
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], 1
jmp 0x4a5767
xor eax, eax
cmp byte [ebx + 8], al
sete al
test al, 1
je 0x4a5767
lea eax, [ebx + 0x16]
cmp eax, edx
ja 0x4a5767
movzx eax, word [ebx + 0x14]
add eax, ebx
lea edi, [eax + 0x24]
cmp edi, edx
ja 0x4a5767
mov edx, dword [eax + 0x20]
or dword [esp + 0x10], 1
mov dword [ebp + 0x20], edx
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
mov edx, dword [eax + 8]
mov dword [ebp + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ebp + 0xc], edx
mov edx, dword [eax + 0x18]
mov dword [ebp + 0x18], edx
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0x1c], eax
test byte [esi + 0x16], 2
jne 0x4a58f4
cmp dword [esp + 0x10], 3
je 0x4a58aa
add ebx, dword [ebx + 4]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0xdc]
add esi, 0xc
cmp ebx, esi
mov dword [esp + 0x18], ebx
jae 0x4a5260
jmp 0x4a57b7
mov ecx, dword [ebx + 4]
push ecx
push str.bad_attribute_len__u_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
jmp 0x4a57b7
push str.get_fd:_not_inuse_n
jmp 0x4a57aa
push str.get_fd:_not_a_file_record_n
push 0xffff0000
call fcn.0048f0c0
add esp, 8
cmp dword [esp + 0x2c], 0
je 0x4a57f8
cmp dword [esp + 0x1c], 0
jne 0x4a57f8
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
push edx
push eax
push esi
push edi
push str.retry_with_base__016I64x_for__016I64x_n
push 0xffff0000
call fcn.0048f0c0
mov dword [esp + 0x34], 1
jmp 0x4a583f
cmp dword [esp + 0x14], 0
je 0x4a58f9
cmp dword [esp + 0x4c], 0
jne 0x4a58f9
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
push ecx
push edx
push esi
push edi
push str.retry_with_type_data__016I64x_for__016I64x_n
push 0xffff0000
call fcn.0048f0c0
mov dword [esp + 0x64], 1
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x40]
add esp, 0x18
push 0
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0xd8]
push ecx
push ebx
push 8
lea edx, [esp + 0x58]
push edx
push 0x90068
mov dword [esp + 0xf4], esi
and esi, 0xffff
push eax
mov dword [esp + 0xf4], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4a51e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FSCTL_GET_NTFS_FILE_RECORD_failed__u_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
cmp dword [0x599108], 0
je 0x4a58dd
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push eax
mov eax, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xdc]
push edx
push eax
push ecx
push str.got_ntfs_file_record__I64x__I64u__d_n
call fcn.0048f0a0
add esp, 0x18
mov edx, dword [esp + 0x28]
push edx
call fcn.004a48d0
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xbc
ret 0x10
or dword [ebp + 0x20], ecx
jmp 0x4a58aa
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
push ecx
push edx
push eax
push str.couldnt_get_fd_from__016I64x__x_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0x14
jmp 0x4a58aa
cmp dword [0x599108], 0
je 0x4a58dd
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
push ecx
push edx
push str.FRN_not_in_use__I64x_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0x10
jmp 0x4a58aa
push eax
push str.bad_BytesPerFileRecordSegment__u_n
jmp 0x4a5966
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FSCTL_GET_NTFS_VOLUME_DATA_failed__u_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
pop ebp
add esp, 0xbc
ret 0x10