Function at 0x4ab6e0
Capabilities:
Read file via mapping

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, dword fs:[0x18]
sub esp, 0x74
mov dword [ebp - 0x58], ecx
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [ebp - 0x54], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov edi, eax
mov dword [ebp - 0x50], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x65e
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateFile_error__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0049fda0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000002
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
sub esp, 0x18
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x662
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x5d40be
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp], eax
call fcn.0049fda0
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], 2
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x48], edi
mov dword [esp], edi
call dword [0x79e80c]
sub esp, 0x28
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x66b
mov dword [esp + 8], edi
not edi
shr edi, 0x1f
mov dword [esp + 4], str.NtMapViewOfSection_error__lx_n
mov dword [esp], edi
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x66c
xor eax, eax
mov dword [esp + 4], str.mapped_address_should_be_valid_n
mov ecx, dword [ebp - 0x40]
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.0049fda0
lea ecx, [ebp - 0x2c]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1c
mov eax, dword [0x57f2cc]
add eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_VirtualQuery]
mov dword [ebp - 0x4c], eax
call eax
sub esp, 0xc
mov dword [ebp - 0x44], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x670
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x5d5ab4
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebp - 0x44], 0x1c
sete al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov edi, dword [ebp - 0x2c]
mov dword [eax + 4], 0x671
mov eax, dword [0x57f2cc]
add eax, dword [ebp - 0x40]
mov dword [esp + 8], edi
cmp eax, edi
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], 0x5d5acc
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov edi, dword [0x79ea48]
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x672
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], edi
cmp edi, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.got__Ix___expected__lx_n
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x673
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], esi
cmp eax, esi
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], 0x5d5afe
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov edi, dword [ebp - 0x40]
mov dword [eax + 4], 0x674
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edi
cmp edi, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], 0x5d5b19
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x675
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0x5d5b24
cmp eax, 0x80
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x676
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x5d5b44
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x677
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], 0x5d5b58
cmp eax, 0x1000000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x44], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], 2
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
mov edi, dword [ebp - 0x48]
mov dword [esp], edi
call dword [0x79e80c]
sub esp, 0x28
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x67d
xor eax, eax
cmp edi, 0x40000003
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.expected_STATUS_IMAGE_NOT_AT_BASE__got__lx_n
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x67e
xor eax, eax
mov dword [esp + 4], str.mapped_address_should_be_valid_n
mov edi, dword [ebp - 0x3c]
test edi, edi
setne al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x67f
xor eax, eax
mov dword [esp + 4], str.mapped_addresses_should_be_different_n
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], ecx
setne al
mov dword [esp], eax
call fcn.0049fda0
lea ecx, [ebp - 0x2c]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1c
mov eax, dword [0x57f2cc]
add eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 0xc
mov dword [ebp - 0x44], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x683
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x5d5ab4
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebp - 0x44], 0x1c
sete al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov edx, dword [ebp - 0x2c]
mov dword [eax + 4], 0x684
mov eax, dword [0x57f2cc]
add eax, dword [ebp - 0x3c]
mov dword [esp + 8], edx
cmp eax, edx
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], 0x5d5acc
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov edx, dword [0x79ea48]
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x685
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.got__Ix___expected__lx_n
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x686
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], esi
cmp esi, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], 0x5d5afe
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], 0x687
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], 0x5d5b19
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x688
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0x5d5b24
cmp eax, 0x80
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x689
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x5d5b44
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x68a
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], 0x5d5b58
cmp eax, 0x1000000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, dword [ebp - 0x3c]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
call dword [0x79e808]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x68d
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.NtUnmapViewOfSection_error__lx_n
mov dword [esp], eax
call fcn.0049fda0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edi, dword [ebp - 0x48]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
mov dword [ebp - 0x3c], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x690
xor eax, eax
mov dword [esp + 4], str.mapped_address_should_be_valid_n
mov edx, dword [ebp - 0x3c]
test edx, edx
setne al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x691
xor eax, eax
mov dword [esp + 4], str.mapped_addresses_should_be_different_n
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], ecx
setne al
mov dword [esp], eax
call fcn.0049fda0
lea ecx, [ebp - 0x2c]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1c
mov eax, dword [0x57f2cc]
add eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 0xc
mov dword [ebp - 0x44], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x695
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x5d5ab4
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebp - 0x44], 0x1c
sete al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov edx, dword [ebp - 0x2c]
mov dword [eax + 4], 0x696
mov eax, dword [0x57f2cc]
add eax, dword [ebp - 0x3c]
mov dword [esp + 8], edx
cmp eax, edx
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], 0x5d5acc
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov edx, dword [0x79ea48]
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x697
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.got__Ix___expected__lx_n
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x698
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], esi
cmp esi, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], 0x5d5afe
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], 0x699
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], 0x5d5b19
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x69a
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0x5d5b24
cmp eax, 0x80
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x69b
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x5d5b44
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x69c
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], 0x5d5b58
cmp eax, 0x1000000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x34], 0xdeadbeef
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 0x3c], eax
sub esp, 4
test eax, eax
je 0x4ac148
mov eax, 0x6aa
call fcn.0049f440
mov eax, dword [ebp - 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.LoadLibrary_error__ld__is_dll__d_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x3c]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.0049fda0
mov eax, 0x6ab
call fcn.0049f440
mov dword [esp + 4], str.mapped_addresses_should_be_different_n
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
mov esi, eax
mov eax, 0x6af
call fcn.0049f440
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.FreeLibrary_error__ld_n
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.0049fda0
mov eax, dword [ebp - 0x40]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
call dword [0x79e808]
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x6b3
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.NtUnmapViewOfSection_error__lx_n
call fcn.0049fda0
mov eax, dword [ebp - 0x48]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, 0x6a4
call fcn.0049f440
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], str.LoadLibrary_should_fail__is_dll__d_n
mov dword [esp + 8], eax
mov dword [esp], eax
call fcn.0049fda0
mov eax, 0x6a5
call fcn.0049f440
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.expected_ERROR_INVALID_ADDRESS__got__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x1e7
sete al
mov dword [esp], eax
call fcn.0049fda0
jmp 0x4ac0d4