Function at 0x42a858
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
test dl, dl
je 0x42a87c
add esp, 0xfffffff0
call fcn.00403cb0
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00404c5c
xor eax, eax
push ebp
push 0x42aabc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.00404c6c
push eax
call sub.kernel32.dll_CreateFileA_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0xffffffff
jne 0x42a8eb
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, 0x42aaf0
call fcn.00404ab8
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x4258b4]
call fcn.0040e188
call fcn.00404118
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x42a934
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, 0x42ab0c
call fcn.00404ab8
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4258b4]
call fcn.0040e188
call fcn.00404118
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x42a990
push 0x42ab38
push dword [ebp - 0xc]
push 0x42ab54
lea eax, [ebp - 0x24]
call fcn.00426b5c
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404b2c
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4258b4]
call fcn.0040e188
call fcn.00404118
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x28]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 4], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0042a818
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x950412de
je 0x42a9ef
cmp dword [ebp - 0x10], 0xde120495
je 0x42a9ef
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov edx, 0x42ab74
call fcn.00404ab8
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x4258b4]
call fcn.0040e188
call fcn.00404118
cmp dword [ebp - 0x10], 0xde120495
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 4], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.0042a818
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.0042a818
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov ecx, 0xc
mov eax, dword [ebp - 4]
call fcn.0042a818
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov ecx, 0x10
mov eax, dword [ebp - 4]
call fcn.0042a818
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 1
cmp dword [ebp - 0x14], 0
je 0x42aa85
shr dword [ebp - 0x14], 1
mov eax, dword [ebp - 4]
shl dword [eax + 0x18], 1
cmp dword [ebp - 0x14], 0
jne 0x42aa76
mov eax, dword [ebp - 4]
shr dword [eax + 0x18], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
shr eax, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42aac3
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.004047c0
lea eax, [ebp - 0xc]
call fcn.0040479c
ret