Function at 0x1004dfd0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10126f61
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x10182014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 7
mov word [ebp - 0x13c], ax
mov dword [ebp - 4], eax
mov eax, dword [esi]
test eax, eax
je 0x1004e263
xorps xmm0, xmm0
lea ecx, [ebp - 0x124]
push eax
movlpd qword [ebp - 0x124], xmm0
call fcn.10025ce0
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x11c]
call fcn.1002c3a0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov byte [ebp - 4], 2
mov eax, dword [esi]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x1004e094
mov eax, dword [eax]
push 4
push eax
lea ecx, [ebp - 0x11c]
call fcn.100c77e0
test al, al
jne 0x1004e0e9
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x1004e0c5
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x1004e254
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x11c], 0
jmp 0x1004e254
mov esi, dword [ebp - 0x11c]
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test esi, esi
je 0x1004e225
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x1004e113
push ecx
call eax
mov dword [ebp - 0x118], 0
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x118], ebx
test ebx, ebx
jne 0x1004e140
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x11c], ebx
jmp 0x1004e23a
mov ecx, 0x40
lea edi, [ebp - 0x110]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004e160
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x13c]
call fcn.100044e0
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call esi
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x118], 0
call fcn.100c7890
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x1004e1bb
push eax
call esi
mov dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x1004e1d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x11c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.10025d30
cmp dword [ebp - 0x128], 8
lea esi, [ebp - 0x13c]
cmovae esi, dword [ebp - 0x13c]
cmp dword [ebp - 0x12c], 0x31
jne 0x1004e263
mov ecx, str.SRFunc.Shm.F847E815_7754_4343_9047_13CD6FB2D4D0
mov edx, 0x31
sub esi, ecx
nop
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x1004e263
add ecx, 2
sub edx, 1
jne 0x1004e210
mov bl, 1
jmp 0x1004e265
mov ebx, dword [ebp - 0x118]
test ebx, ebx
je 0x1004e23f
push ebx
call eax
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1004e254
push ebx
call eax
mov dword [ebp - 0x118], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.10025d30
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.10004480
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011730d
mov esp, ebp
pop ebp
ret