Function at 0x4a57e0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
cmp dword [esp + 0x64], 0
push ebx
mov ebx, dword [esp + 0x64]
push edi
mov edi, eax
je 0x4a60e8
push ebp
push esi
mov eax, dword [edi]
or ebp, 0xffffffff
xor esi, esi
cmp eax, 0x454c4946
jne 0x4a60b7
test byte [edi + 0x16], 1
je 0x4a60cd
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov edx, eax
or edx, ecx
mov dword [esp + 0x28], ecx
je 0x4a5959
movzx ecx, cx
or eax, ecx
jne 0x4a5959
mov eax, dword [ebx + 0xc]
add eax, 4
push eax
call fcn.004a49a0
mov ecx, dword [ebx + 0xc]
push ecx
mov ebp, eax
lea edx, [ebp + 4]
push edi
push edx
call fcn.00549ad0
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
mov edx, dword [ebx + 0x2c]
push eax
mov eax, dword [ebx + 0x28]
push ecx
push edx
push eax
push str.found_extended_MFT_file_record__016I64x_base__016I64x_n
push 0xff00ffff
call fcn.0048f0f0
push 4
push edi
push str.extended_MFT_type__t_n
call fcn.0048f0d0
movzx ecx, word [edi + 4]
push ecx
push str.extended_MFT_USA_Offset__u_n
call fcn.0048f0d0
movzx edx, word [edi + 6]
push edx
push str.extended_MFT_USA_Count__u_n
call fcn.0048f0d0
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
add esp, 0x40
push eax
push ecx
push str.extended_MFT_lsn__I64u_n
call fcn.0048f0d0
movzx edx, word [edi + 0x10]
push edx
push str.extended_MFT_sequence_number__u_n
call fcn.0048f0d0
movzx eax, word [edi + 0x12]
push eax
push str.extended_MFT_name_count__u_n
call fcn.0048f0d0
movzx ecx, word [edi + 0x14]
push ecx
push str.extended_MFT_attribute_offset__u_n
call fcn.0048f0d0
movzx edx, word [edi + 0x16]
push edx
push str.extended_MFT_flags__u_n
call fcn.0048f0d0
mov eax, dword [edi + 0x18]
push eax
push str.extended_MFT_bytes_in_use__u_n
call fcn.0048f0d0
mov ecx, dword [edi + 0x1c]
push ecx
push str.extended_MFT_bytes_allocated__u_n
call fcn.0048f0d0
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
push edx
push eax
push str.extended_MFT_base_frn__u_n
call fcn.0048f0d0
movzx ecx, word [edi + 0x28]
add esp, 0x48
push ecx
push str.extended_MFT_next_attribute_number__u_n
call fcn.0048f0d0
add esp, 8
cmp dword [ebx + 0x7c], esi
je 0x4a5948
mov edx, dword [ebx + 0x80]
mov dword [edx], ebp
mov dword [ebp], esi
mov dword [ebx + 0x80], ebp
jmp 0x4a60cd
mov dword [ebx + 0x7c], ebp
mov dword [ebp], esi
mov dword [ebx + 0x80], ebp
jmp 0x4a60cd
mov ecx, dword [ebx + 0x2c]
cmp ecx, esi
mov eax, dword [ebx + 0x28]
ja 0x4a597b
jb 0x4a596a
cmp eax, 0x10
jae 0x4a597b
cmp eax, 5
jne 0x4a60cd
cmp ecx, esi
jne 0x4a60cd
mov ecx, edi
mov edx, ebx
call fcn.004a5710
test eax, eax
je 0x4a60cd
movzx eax, byte [edi + 0x16]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
movzx ebp, word [edi + 0x14]
and eax, 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x10], esi
add ebp, edi
lea ecx, [ecx]
cmp ebp, edi
jb 0x4a5ccd
mov eax, dword [ebx + 0xc]
lea ecx, [eax + edi]
cmp ebp, ecx
jae 0x4a5ccd
mov ecx, eax
sub ecx, ebp
lea edx, [ecx + edi]
cmp edx, 4
jb 0x4a5ccd
mov esi, dword [ebp]
cmp esi, 0xffffffff
je 0x4a5d05
cmp edx, 8
jb 0x4a5ce6
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4a5a1a
cmp ecx, edx
ja 0x4a5cea
cmp ecx, 0x10
jb 0x4a5ced
cmp byte [ebp + 9], 0
jne case.0x4a5a40.17
lea ecx, [esi - 0x10]
cmp ecx, 0x70
ja case.0x4a5a40.17
movzx ecx, byte [ecx + 0x4a6104]
jmp dword [ecx*4 + 0x4a60f0]
mov edx, dword [esp + 0x70]
cmp dword [edx + 0x1c], 0
je case.0x4a5a40.17
cmp dword [esp + 0x14], 0
jne case.0x4a5a40.17
test byte [ebp + 8], 1
je 0x4a5a7f
push str.nonresident_standard_information_n
call fcn.0048f0d0
mov ebx, dword [esp + 0x74]
add esp, 4
add ebp, dword [ebp + 4]
jmp 0x4a59d0
mov eax, edx
push eax
mov esi, 0x16
mov ecx, ebp
mov edx, edi
call fcn.004a56c0
test eax, eax
je case.0x4a5a40.17
movzx ebx, word [ebp + 0x14]
mov ecx, dword [esp + 0x70]
add ebx, ebp
push ecx
mov esi, 0x24
mov ecx, ebx
mov edx, edi
call fcn.004a56c0
test eax, eax
je case.0x4a5a40.17
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x5c], edx
mov eax, dword [ebx]
mov dword [esp + 0x4c], eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x50], ecx
mov edx, dword [ebx + 8]
mov dword [esp + 0x44], edx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x48], eax
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x54], ecx
mov edx, dword [ebx + 0x1c]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x58], edx
add ebp, dword [ebp + 4]
mov dword [esp + 0x14], 1
jmp 0x4a59d0
mov eax, dword [edi + 0x20]
or eax, dword [edi + 0x24]
je 0x4a5b12
push str.attribute_list_attribute_with_base_frn_n
call fcn.0048f0d0
add esp, 4
add ebp, dword [ebp + 4]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x1c], 1
jmp 0x4a59d0
test byte [ebp + 8], 1
jne 0x4a5c2c
cmp edx, 0x16
jae 0x4a5b41
mov ecx, ebp
push 0x16
sub ecx, edi
push ecx
jmp 0x4a5c91
movzx ebx, word [ebp + 0x14]
add ebx, ebp
cmp ebx, edi
jb 0x4a5b5b
lea ecx, [eax + edi]
cmp ebx, ecx
jae 0x4a5b5b
sub eax, ebx
add eax, edi
cmp eax, 0x42
jae 0x4a5b65
push 0x42
sub ebx, edi
push ebx
jmp 0x4a5c91
movzx esi, byte [ebx + 0x40]
mov edx, dword [esp + 0x70]
push edx
lea esi, [esi + esi + 0x42]
mov ecx, ebx
mov edx, edi
call fcn.004a56c0
test eax, eax
je case.0x4a5a40.17
mov al, byte [ebx + 0x41]
cmp al, 1
je 0x4a5bb7
cmp al, 3
je 0x4a5bb7
test al, al
je 0x4a5bb7
cmp al, 2
je case.0x4a5a40.17
movzx eax, al
push eax
push str.bad_name_flag__02x_n
call fcn.0048f0d0
mov ebx, dword [esp + 0x78]
add esp, 8
add ebp, dword [ebp + 4]
jmp 0x4a59d0
movzx eax, word [ebx + 4]
test eax, eax
mov ecx, dword [ebx]
ja 0x4a5bec
jb 0x4a5bc8
cmp ecx, 0x10
jae 0x4a5bec
cmp ecx, 5
jne 0x4a5bd1
test eax, eax
je 0x4a5bec
push eax
push ecx
push str.ignore_name_attr_for_internal_ntfs_folder__016I64x_n
call fcn.0048f0d0
mov ebx, dword [esp + 0x7c]
add esp, 0xc
add ebp, dword [ebp + 4]
jmp 0x4a59d0
cmp dword [esp + 0x10], 0
je 0x4a5c11
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x28], ebx
mov dword [ebx + 0x28], 0
add ebp, dword [ebp + 4]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x70]
jmp 0x4a59d0
mov dword [ebx + 0x28], 0
add ebp, dword [ebp + 4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x70]
jmp 0x4a59d0
push str.nonresident_name_attribute_n
call fcn.0048f0d0
mov ebx, dword [esp + 0x74]
add esp, 4
add ebp, dword [ebp + 4]
jmp 0x4a59d0
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x20], 0
je case.0x4a5a40.17
test byte [ebp + 8], 1
je 0x4a5c85
cmp edx, 0x48
jae 0x4a5c63
mov ecx, ebp
push 0x48
sub ecx, edi
push ecx
jmp 0x4a5c91
mov edx, dword [ebp + 0x10]
or edx, dword [ebp + 0x14]
jne case.0x4a5a40.17
mov eax, dword [ebp + 0x30]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x3c], eax
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x40], ecx
add ebp, dword [ebp + 4]
jmp 0x4a59d0
cmp edx, 0x16
jae 0x4a5cb2
mov edx, ebp
push 0x16
sub edx, edi
push edx
push str.invalid_file_record_access_at_offset__u_len__u_n
push 0xffff0000
call fcn.0048f0f0
mov ebx, dword [esp + 0x80]
add esp, 0x10
add ebp, dword [ebp + 4]
jmp 0x4a59d0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0
add ebp, dword [ebp + 4]
mov ebx, dword [esp + 0x70]
jmp 0x4a59d0
push 4
sub ebp, edi
push ebp
push str.invalid_file_record_access_at_offset__u_len__u_n
push 0xffff0000
call fcn.0048f0f0
add esp, 0x10
jmp 0x4a5d05
push 8
jmp 0x4a5ccf
push ecx
jmp 0x4a5ccf
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x28]
push 0x10
push ecx
push edx
push eax
push str._t_I64u:_BAD_record_length__d____d_n
call fcn.0048f0d0
add esp, 0x14
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov ecx, eax
or ecx, edx
mov dword [esp + 0x28], edx
je 0x4a5e93
movzx ecx, dx
test ecx, ecx
ja 0x4a5d44
jb 0x4a5d27
cmp eax, 0x10
jae 0x4a5d44
cmp eax, 5
jne 0x4a5d30
test ecx, ecx
je 0x4a5d44
push edx
push eax
push str.ignore_internal_extended_fragmented_file_record__016I64x_n
call fcn.0048f0d0
add esp, 0xc
jmp 0x4a60cd
mov edx, dword [ebx + 0x54]
lea ebp, [ebx + 0x4c]
add edx, 0x48
cmp edx, dword [ebp + 0xc]
jb 0x4a5d5a
push 0x48
push ebp
call fcn.004b5360
mov esi, dword [ebp + 8]
lea eax, [esi + 0x48]
mov dword [ebp + 8], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0x24]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x50]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x44]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x54]
mov dword [esi + 0x20], edx
mov eax, dword [esp + 0x58]
mov dword [esi + 0x24], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x28], ecx
mov edx, dword [esp + 0x40]
xor ecx, ecx
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x10]
cmp eax, ecx
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x34], edx
mov dword [esp + 0x10], eax
je 0x4a5e69
mov eax, dword [esp + 0x10]
movzx ebp, byte [eax + 0x40]
lea ebp, [ebp + ebp + 0x10]
cmp ebp, 0x100
lea eax, [ebx + 0x4c]
jle 0x4a5df4
push ebp
push eax
call fcn.004b5400
jmp 0x4a5e0d
mov ecx, dword [eax + 8]
add ecx, ebp
cmp ecx, dword [eax + 0xc]
jb 0x4a5e05
push ebp
push eax
call fcn.004b5360
mov eax, dword [ebx + 0x54]
add ebp, eax
mov dword [ebx + 0x54], ebp
mov ebp, eax
mov eax, dword [esp + 0x10]
mov dl, byte [eax + 0x40]
mov byte [ebp + 0xc], dl
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
movzx ecx, byte [eax + 0x40]
add ecx, ecx
push ecx
add eax, 0x42
push eax
lea edx, [ebp + 0x10]
push edx
call fcn.00549ad0
add esp, 0xc
cmp dword [esi + 0x3c], 0
je 0x4a5e49
mov eax, dword [esi + 0x40]
mov dword [eax + 8], ebp
jmp 0x4a5e4c
mov dword [esi + 0x3c], ebp
mov ecx, dword [esp + 0x10]
mov dword [ebp + 8], 0
mov dword [esi + 0x40], ebp
mov eax, dword [ecx + 0x28]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4a5dd4
cmp dword [ebx + 0x30], 0
je 0x4a5e82
mov edx, dword [ebx + 0x34]
mov dword [edx], esi
mov dword [esi], 0
mov dword [ebx + 0x34], esi
jmp 0x4a60cd
mov dword [ebx + 0x30], esi
mov dword [esi], 0
mov dword [ebx + 0x34], esi
jmp 0x4a60cd
cmp dword [esp + 0x1c], 0
je 0x4a604a
mov eax, dword [ebx + 0x38]
cmp eax, dword [ebx + 0x3c]
jne 0x4a5f2c
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x48]
add ecx, 1
cmp ecx, eax
jbe 0x4a5efa
lea ebp, [eax + eax]
test ebp, ebp
jne 0x4a5ec3
mov ebp, 1
lea edx, [ebp*4]
push edx
call fcn.004a49a0
mov ecx, dword [ebx + 0x40]
mov esi, eax
mov eax, dword [ebx + 0x44]
add eax, eax
add eax, eax
push eax
push ecx
push esi
call fcn.00549ad0
mov eax, dword [ebx + 0x40]
add esp, 0xc
test eax, eax
je 0x4a5ef4
push eax
call fcn.004a4a00
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x48], ebp
push 0x10000
call fcn.004a49a0
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x40]
mov dword [ecx + edx*4], eax
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x40]
lea ecx, [edx + eax*4]
mov edx, dword [ecx]
mov dword [ebx + 0x38], edx
mov ecx, dword [ecx]
add ecx, 0x10000
add eax, 1
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x44], eax
mov esi, dword [ebx + 0x38]
mov eax, dword [esp + 0x5c]
lea edx, [esi + 0x40]
mov dword [ebx + 0x38], edx
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x4c]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x50]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x44]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x58]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], ecx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x20], edx
mov eax, dword [esp + 0x40]
mov dword [esi + 0x24], eax
movzx eax, word [edi + 0x10]
cdq
mov edx, dword [esp + 0x18]
xor ecx, ecx
or ecx, dword [ebx + 0x28]
shl eax, 0x10
or eax, dword [ebx + 0x2c]
mov dword [esi], ecx
xor ecx, ecx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
cmp eax, ecx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x2c], edx
mov dword [esp + 0x14], eax
je 0x4a60cd
nop
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 0x40]
lea ebp, [ebp + ebp + 0x10]
cmp ebp, 0x100
lea eax, [ebx + 0x4c]
jle 0x4a5fd0
push ebp
push eax
call fcn.004b5400
jmp 0x4a5fe9
mov ecx, dword [eax + 8]
add ecx, ebp
cmp ecx, dword [eax + 0xc]
jb 0x4a5fe1
push ebp
push eax
call fcn.004b5360
mov eax, dword [ebx + 0x54]
add ebp, eax
mov dword [ebx + 0x54], ebp
mov ebp, eax
mov eax, dword [esp + 0x14]
mov dl, byte [eax + 0x40]
mov byte [ebp + 0xc], dl
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
movzx ecx, byte [eax + 0x40]
add ecx, ecx
push ecx
add eax, 0x42
push eax
lea edx, [ebp + 0x10]
push edx
call fcn.00549ad0
add esp, 0xc
cmp dword [esi + 0x34], 0
je 0x4a6025
mov eax, dword [esi + 0x38]
mov dword [eax + 8], ebp
jmp 0x4a6028
mov dword [esi + 0x34], ebp
mov ecx, dword [esp + 0x14]
mov dword [ebp + 8], 0
mov dword [esi + 0x38], ebp
mov eax, dword [ecx + 0x28]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4a5fb0
jmp 0x4a60cd
movzx eax, word [edi + 0x10]
mov ebp, dword [esp + 0x10]
cdq
xor edx, edx
or edx, dword [ebx + 0x28]
shl eax, 0x10
or eax, dword [ebx + 0x2c]
test ebp, ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
je 0x4a60cd
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x70]
test ebx, ebx
mov eax, dword [ebp]
mov dword [esp + 0x34], eax
mov ecx, dword [ebp + 4]
lea edx, [ebp + 0x42]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x64], edx
mov al, byte [ebp + 0x40]
mov byte [esp + 0x60], al
je 0x4a6099
or dword [esp + 0x5c], 0x10
jmp 0x4a609e
and dword [esp + 0x5c], 0xffffffef
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x2c]
push ecx
push edx
call eax
mov ebp, dword [ebp + 0x28]
test ebp, ebp
jne 0x4a6072
mov ebx, esi
jmp 0x4a60cd
cmp dword [0x598128], esi
je 0x4a60cd
push eax
push str.bad_file_record_type__08x_n
call fcn.0048f0d0
add esp, 8
add edi, dword [ebx + 0xc]
mov eax, 1
add dword [ebx + 0x28], eax
adc dword [ebx + 0x2c], 0
sub dword [esp + 0x74], eax
jne 0x4a57f8
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x5c
ret 8