Function at 0x100566f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101deab1
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x1024e014]
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 0x10056983
xorps xmm0, xmm0
lea ecx, [ebp - 0x124]
push eax
movlpd qword [ebp - 0x124], xmm0
call fcn.1002a120
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x11c]
call fcn.10030b80
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 0x100567b4
mov eax, dword [eax]
push 4
push eax
lea ecx, [ebp - 0x11c]
call fcn.100dafd0
test al, al
jne 0x10056809
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x100567e5
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x10056974
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x11c], 0
jmp 0x10056974
mov esi, dword [ebp - 0x11c]
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test esi, esi
je 0x10056945
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x10056833
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 0x10056860
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x11c], ebx
jmp 0x1005695a
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 0x10056880
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x13c]
call fcn.100045d0
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call esi
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x118], 0
call fcn.100db080
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x100568db
push eax
call esi
mov dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x100568f6
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.1002a170
cmp dword [ebp - 0x128], 8
lea esi, [ebp - 0x13c]
cmovae esi, dword [ebp - 0x13c]
cmp dword [ebp - 0x12c], 0x31
jne 0x10056983
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 0x10056983
add ecx, 2
sub edx, 1
jne 0x10056930
mov bl, 1
jmp 0x10056985
mov ebx, dword [ebp - 0x118]
test ebx, ebx
je 0x1005695f
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 0x10056974
push ebx
call eax
mov dword [ebp - 0x118], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.1002a170
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.10004570
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.101d284b
mov esp, ebp
pop ebp
ret