Function at 0x47e774
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 0x47e798
add esp, 0xfffffff0
call fcn.004040c0
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.004051ec
xor eax, eax
push ebp
push 0x47e9d3
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.004051fc
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 0x47e807
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, 0x47ea04
call fcn.00405048
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x47b288]
call fcn.0040fef8
call fcn.004045ec
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 0x47e850
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, 0x47ea20
call fcn.00405048
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x47b288]
call fcn.0040fef8
call fcn.004045ec
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 0x47e8ac
push 0x47ea4c
push dword [ebp - 0xc]
push 0x47ea68
lea eax, [ebp - 0x24]
call fcn.0047c10c
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004050bc
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x47b288]
call fcn.0040fef8
call fcn.004045ec
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.0047e734
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x950412de
je 0x47e906
cmp dword [ebp - 0x10], 0xde120495
je 0x47e906
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov edx, 0x47ea88
call fcn.00405048
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x47b288]
call fcn.0040fef8
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.0047e734
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.0047e734
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.0047e734
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.0047e734
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 0x47e99c
shr dword [ebp - 0x14], 1
mov eax, dword [ebp - 4]
shl dword [eax + 0x18], 1
cmp dword [ebp - 0x14], 0
jne 0x47e98d
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 0x47e9da
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.00404d44
lea eax, [ebp - 0xc]
call fcn.00404d20
ret