Function at 0x4a6180
Capabilities:
Enumerate pe sections
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x144
push ebp
mov ebp, dword [esp + 0x150]
cmp dword [ebp + 0x18], 0
je 0x4a7052
cmp dword [ebp + 0x14], 0
je 0x4a7052
cmp dword [ebp + 0x10], 0
je 0x4a7052
push ebx
push edi
call fcn.0048f230
push 0x88
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xcc]
push 0
push eax
call fcn.00549e40
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x170]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xd8], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0xe0], eax
xor edx, edx
div ecx
mov edi, dword [esp + 0x160]
mov ebx, dword [esp + 0x168]
add esp, 0xc
mov dword [esp + 0xc8], edi
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xdc], eax
lea eax, [esp + 0x114]
push eax
call fcn.004b5300
lea ecx, [esp + 0x12c]
push ecx
call fcn.00401370
test bl, 0x1e
mov eax, 1
je 0x4a6253
mov dword [esp + 0xe4], eax
test al, bl
je 0x4a625e
mov dword [esp + 0xe8], eax
mov eax, dword [ebp + 0x10]
mov ebx, 0x10000
cmp eax, ebx
mov dword [esp + 0x44], ebx
jbe 0x4a6274
mov ebx, eax
mov dword [esp + 0x44], eax
push esi
mov esi, dword [esp + 0xd8]
cmp esi, ebx
jbe 0x4a6286
mov ebx, esi
mov dword [esp + 0x48], ebx
xor edx, edx
mov eax, ebx
div esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xdc]
cmp esi, eax
jae 0x4a629d
mov esi, eax
push ebx
call fcn.004a4a40
push esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ebx
call fcn.004a4a40
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x70], ebx
jne 0x4a62d8
push str.Virtual_alloc_NTFS_file_record_buffer
push str.ntfs_enum_mft
push 0x49c
push str.._src_ntfs.c
call fcn.0048f280
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0x10]
push ebx
xor eax, eax
push ecx
mov ecx, dword [ebp]
push ecx
push eax
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00549f80
push edx
push eax
call fcn.004a4d70
lea esp, [esp]
mov ecx, ebx
lea edx, [esp + 0xcc]
call fcn.004a5710
test eax, eax
je 0x4a66c6
push 4
push ebx
push str.MFT_type__t_n
call fcn.0048f0d0
movzx edx, word [ebx + 4]
push edx
push str.MFT_USA_Offset__u_n
call fcn.0048f0d0
movzx eax, word [ebx + 6]
push eax
push str.MFT_USA_Count__u_n
call fcn.0048f0d0
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push ecx
push edx
push str.MFT_lsn__I64u_n
call fcn.0048f0d0
movzx eax, word [ebx + 0x10]
push eax
push str.MFT_sequence_number__u_n
call fcn.0048f0d0
movzx ecx, word [ebx + 0x12]
push ecx
push str.MFT_name_count__u_n
call fcn.0048f0d0
movzx edx, word [ebx + 0x14]
push edx
push str.MFT_attribute_offset__u_n
call fcn.0048f0d0
movzx eax, word [ebx + 0x16]
add esp, 0x40
push eax
push str.MFT_flags__u_n
call fcn.0048f0d0
mov ecx, dword [ebx + 0x18]
push ecx
push str.MFT_bytes_in_use__u_n
call fcn.0048f0d0
mov edx, dword [ebx + 0x1c]
push edx
push str.MFT_bytes_allocated__u_n
call fcn.0048f0d0
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
push eax
push ecx
push str.MFT_base_frn__u_n
call fcn.0048f0d0
movzx edx, word [ebx + 0x28]
push edx
push str.MFT_next_attribute_number__u_n
call fcn.0048f0d0
movzx esi, word [ebx + 0x14]
add esp, 0x2c
add esi, ebx
cmp esi, ebx
jb 0x4a6699
mov eax, dword [esp + 0xd8]
lea ecx, [ebx + eax]
cmp esi, ecx
jae 0x4a6699
mov edi, ebx
sub edi, esi
lea edx, [edi + eax]
cmp edx, 4
jb 0x4a6699
mov eax, dword [esi]
push eax
push str._tTypeCode__08x_n
call fcn.0048f0d0
add esp, 8
cmp dword [esi], 0xffffffff
je 0x4a66c6
mov eax, dword [esp + 0xd8]
lea ecx, [ebx + eax]
cmp esi, ecx
jae 0x4a66b2
lea ecx, [edi + eax]
cmp ecx, 8
jb 0x4a66b2
mov eax, dword [esi + 4]
test eax, eax
je 0x4a6458
cmp eax, ecx
ja 0x4a66b6
cmp eax, 0x10
push eax
jb 0x4a66b9
push str._tMFT_record_length__u_n
call fcn.0048f0d0
movzx edx, word [esi + 0xc]
push edx
push str._tMFT_flags__u_n
call fcn.0048f0d0
movzx eax, byte [esi + 9]
push eax
push str._tMFT_name_length__u_n
call fcn.0048f0d0
movzx ecx, word [esi + 0xa]
push ecx
push str._tMFT_name_offset__u_n
call fcn.0048f0d0
movzx edx, byte [esi + 8]
push edx
push str._tMFT_form_flags__u_n
call fcn.0048f0d0
movzx eax, word [esi + 0xe]
push eax
push str._tMFT_attribute_id__u_n
call fcn.0048f0d0
add esp, 0x30
cmp dword [esi], 0x80
jne 0x4a6684
test byte [esi + 8], 1
je 0x4a6677
mov eax, dword [esp + 0xd8]
lea ecx, [ebx + eax]
cmp esi, ecx
jae 0x4a64e5
add edi, eax
cmp edi, 0x48
jae 0x4a6514
push 0x48
mov edx, esi
sub edx, ebx
push edx
push str.invalid_file_record_access_at_offset__u_len__u_n
push 0xffff0000
call fcn.0048f0f0
mov edx, dword [esi + 4]
add esp, 0x10
push edx
push str.bad_MFT_record_length__d_for_nonresident_n
call fcn.0048f0d0
add esp, 8
jmp 0x4a6684
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
push eax
push ecx
push str._tMFT_allocated_length__I64u_n
call fcn.0048f0d0
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
push edx
push eax
push str._tMFT_file_size__I64u_n
call fcn.0048f0d0
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push ecx
push edx
push str._tMFT_highest_vcn__I64u_n
call fcn.0048f0d0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push eax
push ecx
push str._tMFT_lowest_vcn__I64u_n
call fcn.0048f0d0
movzx edx, word [esi + 0x20]
push edx
push str._tMFT_mapping_pairs_offset__u_n
call fcn.0048f0d0
movzx eax, byte [esi + 0x22]
push eax
push str._tMFT_compression_unit_size__u_n
call fcn.0048f0d0
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
add esp, 0x40
push ecx
push edx
push str._tMFT_total_allocated__I64u_n
call fcn.0048f0d0
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
push eax
push ecx
push str._tMFT_valid_data_length__I64u_n
call fcn.0048f0d0
mov edx, dword [esi + 0x10]
mov edi, dword [esp + 0xf0]
add esp, 0x18
or edx, dword [esi + 0x14]
jne 0x4a65d3
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
push 0
push edi
push eax
push ecx
call fcn.00549f10
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
movzx eax, word [esi + 0x20]
mov ebp, dword [esi + 4]
sub ebp, eax
lea eax, [eax + esi]
je 0x4a660e
invalid