Function at 0x531248
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x531251
push ecx
xchg dword [ebp - 4], ecx
push ebx
test dl, dl
je 0x531269
add esp, 0xfffffff0
call fcn.0040786c
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5315bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
movzx eax, byte [ebp + 0xc]
mov byte [edx + 0x20], al
mov edx, dword [0x751fb8]
cmp dword [edx + 0xc], 0
je 0x5312e7
mov eax, dword [0x751fb8]
mov eax, dword [eax + 0x10]
call fcn.00405564
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
mov eax, ebx
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov ecx, eax
mov eax, dword [0x751fb8]
mov ebx, dword [eax + 0xc]
mov eax, dword [0x751fb8]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
test edx, edx
je 0x5312d1
call fcn.004071ac
mov edx, ecx
mov ecx, ebx
xchg ecx, eax
call fcn.004057b0
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 0
jmp 0x5314a0
test al, al
je 0x5313fb
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.00409f10
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], ebx
cmp ebx, 0xffffffff
jne 0x53133d
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5315f4
call fcn.0040a17c
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x52b7e4]
call fcn.00427734
call fcn.0040869c
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 0x531383
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, 0x531624
call fcn.0040a17c
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x52b7e4]
call fcn.00427734
call fcn.0040869c
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 0x5313e7
push 0x531674
push dword [ebp - 0xc]
push 0x5316a4
lea eax, [ebp - 0x24]
call fcn.0052ce98
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.0040a008
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.0040a204
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x52b7e4]
call fcn.00427734
call fcn.0040869c
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
jmp 0x5314a0
push 0x40
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4774cc]
call fcn.004979b0
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x531499
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp + 0x14], 0
jne 0x531436
cmp dword [ebp + 0x10], 0
jne 0x531436
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
mov eax, dword [ebp + 0x10]
call fcn.00405564
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
call fcn.004971e8
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x53146e
call fcn.004071ac
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 0x10]
call fcn.00497540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5314a0
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x10], edx
call fcn.004072c4
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.00531230
cmp eax, 0x950412de
je 0x5314e9
cmp eax, 0xde120495
je 0x5314e9
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5316e0
call fcn.0040a17c
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x52b7e4]
call fcn.00427734
call fcn.0040869c
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.00531230
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.00531230
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.00531230
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.00531230
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
test eax, eax
jns 0x531564
call fcn.004071ac
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 1
test eax, eax
je 0x53157e
shr eax, 1
mov edx, dword [ebp - 4]
shl dword [edx + 0x18], 1
test eax, eax
jne 0x531572
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 0x5315c4
lea eax, [ebp - 0x28]
call fcn.00408f98
lea eax, [ebp - 0x24]
call fcn.00408fe0
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00408ff8
ret