Function at 0xa48ee0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push edi
xor edi, edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0xa49186
mov eax, dword [esi + 0x5c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebp
push edi
push eax
push edi
push 0x8000040
push edi
push 0xffffffffffffffff
call ebx
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0xa48f3b
mov ecx, dword [esi + 0x5c]
push eax
push ecx
push eax
push 0x8000004
push eax
push 0xffffffffffffffff
call ebx
test eax, eax
mov dword [esp + 0x14], eax
mov ebp, eax
je 0xa49175
push 0
push 0
push 0
push 0x26
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0xa48f66
push eax
push eax
push eax
push 6
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0xa49175
mov edi, dword [esp + 0x10]
mov edx, dword [esi + 0x60]
push 1
push 0
push 0
push edi
mov dword [esp + 0x40], edx
call fcn.00a2a140
push 0
push 0
push 0
push edi
mov dword [esp + 0x2c], eax
call fcn.00a2a140
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x24]
push 0
push eax
push ecx
push ebx
push edi
call fcn.00a2abe0
mov edx, dword [ebx + 0x3c]
mov ecx, dword [esi + 0x5c]
lea eax, [edx + ebx + 0x18]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [edx], ecx
cmp word [esi + 0x12], ax
mov dword [esp + 0x18], eax
jbe 0xa49074
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x108]
mov ecx, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [eax + 8]
mov ebp, dword [eax + 0x10]
cmp ebp, ecx
mov dword [esp + 0x34], ecx
jbe 0xa48fe6
mov dword [esp + 0x34], ebp
mov edi, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0x10]
push 0
push 0
push edx
push eax
add edi, ebx
call fcn.00a2a140
mov ecx, dword [esi + 0x108]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + ecx + 0x24]
test al, 0x40
jne 0xa4901b
test al, 0x80
je 0xa4901b
mov ecx, dword [esp + 0x34]
xor eax, eax
jmp 0xa4903c
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push 0
push eax
push ebp
push edi
push ecx
call fcn.00a2abe0
mov ecx, dword [esp + 0x34]
cmp ebp, ecx
jae 0xa4904a
sub ecx, ebp
xor eax, eax
add edi, ebp
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
xor ecx, ecx
inc eax
mov cx, word [esi + 0x12]
add edi, 0x28
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], edi
jl 0xa48fc8
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
push edi
call fcn.00a2a140
cmp word [esi + 0x20], 0xe0
jne 0xa490f1
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push ecx
push 0x40
lea edi, [eax + 0xb0]
push 8
push edi
call fcn.00a47890
test al, al
jne 0xa490b7
lea edx, [esp + 0x30]
push edx
push 4
push 8
push edi
call fcn.00a47890
mov edi, dword [edi]
test edi, edi
je 0xa490f1
lea eax, [esp + 0x30]
add edi, ebx
push eax
push 0x40
push 8
push edi
call fcn.00a47890
test al, al
jne 0xa490e1
lea ecx, [esp + 0x30]
push ecx
push 4
push 8
push edi
call fcn.00a47890
cmp dword [edi], 0x48
jne 0xa490f1
xor eax, eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x3c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov al, byte [esi + 0xc]
test al, al
je 0xa49103
push 0
jmp 0xa49107
mov edx, dword [esi + 0x40]
push edx
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
push 0
push 0
push 0
push 0x26
push ebp
call ebx
mov edi, eax
test edi, edi
jne 0xa49175
push eax
push eax
push eax
push 0x26
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0xa49175
mov eax, dword [esi + 0x40]
push eax
push edi
push edi
push edi
push 6
push ebp
call ebx
mov edi, eax
test edi, edi
jne 0xa49175
push eax
push eax
push eax
push 6
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0xa49175
mov ecx, dword [0xaa2204]
mov edx, dword [ecx]
shr edx, 3
test dl, 1
je 0xa49175
mov eax, dword [esi + 8]
push eax
push str.Failed_to_mapviewofFile_for_module_map_of__s__n
call fcn.009fe320
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, edi
pop ebx
pop edi
pop esi
add esp, 0x1c
ret
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret