Function at 0x10085090
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011cfe3
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x10160068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
cmp byte [0x10166108], 0
mov dword [ebp - 0x20], eax
je 0x100850e5
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 6
mov dword [0x10166104], ecx
cmp dword [eax + 0x10], 0
je 0x100854cb
cmp dword [esi + 0x10], 0
je 0x1008528e
mov dword [ebp - 4], 0
push 0x2c
call fcn.100ced35
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
mov dword [eax + 4], 1
xor edx, edx
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj_class_RC::RCEvent_.0
mov dword [ecx], 0
mov byte [ecx + 4], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 7
mov dword [ebp - 0x40], ecx
mov word [ecx + 8], dx
mov byte [ebp - 4], dl
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x18], ecx
mov ecx, 0x101660fc
push eax
mov dword [ebp - 0x1c], 1
call fcn.1000b900
mov eax, 1
mov dword [ebp - 0x1c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x100851bd
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x100851bd
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x100851bd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp dword [esi + 0x14], 8
jb 0x100851c5
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100851f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.1000b730
mov dword [ebp - 4], 3
lea eax, [ebp - 0x38]
push ecx
mov ecx, dword [0x101660fc]
push 0
push eax
call fcn.1008e570
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x10085269
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008525c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100854e0
push edx
push ecx
call fcn.100cf0c8
mov al, byte [ebp - 0xd]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], cx
test al, al
je 0x1008543c
mov ecx, dword [0x10166104]
mov eax, dword [ebp - 0x20]
imul ecx, ecx, 0x410
add ecx, 0x418
cmp dword [eax + 0x14], 8
jb 0x100852a2
mov eax, dword [eax]
push ecx
sub esp, 8
push eax
push ecx
call fcn.1008a5f0
mov byte [ebp - 0xd], al
test al, al
je 0x1008543c
imul esi, dword [0x10166104], 0x410
add esi, 0x418
cmp dword [0x101660f8], 0xb7
jne 0x10085378
xor al, al
cmp dword [0x101660f0], 0
mov byte [ebp - 0xd], al
je 0x10085437
mov eax, dword [0x101660f4]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x10085306
push eax
call edi
mov dword [0x101660f4], 0
push esi
push 0
push 0
push 6
push dword [0x101660f0]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [0x101660f4], ecx
test ecx, ecx
je 0x10085437
mov dword [0x1016610c], ecx
cmp dword [ecx], 0x35343332
jne 0x1008535b
cmp dword [ecx + 4], 1
jne 0x1008535b
cmp dword [ecx + 8], 0
jne 0x1008535b
mov eax, dword [0x10166104]
lea eax, [eax*8 + 0x10]
cmp dword [ecx + 0xc], eax
jne 0x1008535b
mov al, 1
mov byte [ebp - 0xd], al
jmp 0x1008536b
push ecx
call edi
mov al, byte [ebp - 0xd]
mov dword [0x101660f4], 0
test al, al
jne 0x100854b3
jmp 0x1008543c
cmp dword [0x101660f0], 0
je 0x10085437
mov eax, dword [0x101660f4]
test eax, eax
je 0x1008539f
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x101660f4], 0
push esi
push 0
push 0
push 6
push dword [0x101660f0]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x101660f4], eax
test eax, eax
je 0x10085437
mov dword [0x1016610c], eax
xor edi, edi
mov dword [eax], 0x35343332
mov eax, dword [0x1016610c]
mov dword [eax + 4], 1
mov eax, dword [0x1016610c]
mov dword [eax + 8], 0
mov eax, dword [0x10166104]
lea ecx, [eax*8 + 0x10]
mov eax, dword [0x1016610c]
mov dword [eax + 0xc], ecx
cmp dword [0x10166104], edi
jbe 0x1008541d
mov esi, 0x14
mov eax, dword [0x1016610c]
push 0
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc edi
add esi, 4
cmp edi, dword [0x10166104]
jb 0x10085401
mov al, 1
mov byte [0x10166108], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov byte [ebp - 0xd], al
cmp dword [0x101660f0], 0
je 0x1008544a
call fcn.1008a760
mov ecx, dword [0x101660fc]
test ecx, ecx
je 0x100854b0
cmp dword [ecx], 0
je 0x1008545e
call fcn.1008e550
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x101660fc
call fcn.1000b900
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x100854b0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100854b0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100854b0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0xd]
mov byte [0x10166108], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call fcn.100ecf9f
int3