Function at 0x54d80c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x54d815
push ecx
xchg dword [ebp - 4], ecx
push ebx
test dl, dl
je 0x54d82d
add esp, 0xfffffff0
call fcn.00405610
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54db36
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
movzx eax, byte [ebp + 8]
mov byte [edx + 0x20], al
test al, al
je 0x54d962
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.00407c20
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], ebx
cmp ebx, 0xffffffff
jne 0x54d8a4
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, 0x54db6c
call fcn.00407e7c
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x545004]
call fcn.00425260
call fcn.00406448
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ebx
test ebx, ebx
jne 0x54d8ea
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, 0x54db9c
call fcn.00407e7c
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x545004]
call fcn.00425260
call fcn.00406448
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
test ebx, ebx
jne 0x54d94e
push 0x54dbec
push dword [ebp - 0xc]
push 0x54dc1c
lea eax, [ebp - 0x24]
call fcn.005483fc
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.00407d08
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00407f04
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x545004]
call fcn.00425260
call fcn.00406448
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
jmp 0x54da19
push 0x40
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x43f0d8]
call fcn.0044dddc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x54da12
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp + 0x10], 0
jne 0x54d99d
cmp dword [ebp + 0xc], 0
jne 0x54d99d
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0xc]
call fcn.0040458c
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], ebx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x54d9c7
call fcn.00404e54
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x54d9e7
call fcn.00404e54
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 0x10]
call fcn.0044d640
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54da19
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x10], edx
call fcn.00405004
ret
mov eax, dword [ebp - 4]
mov byte [eax + 4], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0054d7f4
cmp eax, 0x950412de
je 0x54da62
cmp eax, 0xde120495
je 0x54da62
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov edx, 0x54dc58
call fcn.00407e7c
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x545004]
call fcn.00425260
call fcn.00406448
cmp eax, 0xde120495
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 4], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.0054d7f4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.0054d7f4
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov ecx, 0xc
mov eax, dword [ebp - 4]
call fcn.0054d7f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov ecx, 0x10
mov eax, dword [ebp - 4]
call fcn.0054d7f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
test eax, eax
jns 0x54dadd
call fcn.00404e54
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 1
test eax, eax
je 0x54daf7
shr eax, 1
mov edx, dword [ebp - 4]
shl dword [edx + 0x18], 1
test eax, eax
jne 0x54daeb
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 0x54db3d
lea eax, [ebp - 0x28]
call fcn.00406d50
lea eax, [ebp - 0x24]
call fcn.00406d98
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00406db0
ret