Function at 0x1016eb80
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f839d
mov eax, dword fs:[0]
push eax
mov eax, 0x40084
call fcn.10191780
mov eax, dword [0x102632d4]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x40000
mov dword [ebp - 0x40090], eax
lea eax, [ebp - 0x40010]
push 0
push eax
call fcn.101a9880
add esp, 0xc
mov dword [ebp - 0x40018], 0
xor eax, eax
mov dword [ebp - 0x40014], 7
lea ecx, [ebp - 0x40028]
mov word [ebp - 0x40028], ax
push 0x1f
push str.Local_shared_memory.user_select
call fcn.10008910
cmp dword [ebp - 0x40014], 8
lea eax, [ebp - 0x40028]
cmovae eax, dword [ebp - 0x40028]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
mov dword [ebp - 0x4008c], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, 1
test esi, esi
je 0x1016ec7c
push 0x20000
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x1016ec70
push 0x20000
lea eax, [ebp - 0x40010]
push esi
push eax
call fcn.101a8d80
add esp, 0xc
xor bl, bl
test esi, esi
je 0x1016ec70
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x4008c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x40014]
cmp edx, 8
jb 0x1016ecbc
mov ecx, dword [ebp - 0x40028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1016ecb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1016f044
push edx
push ecx
call fcn.101912ef
add esp, 8
test bl, bl
je 0x1016ecc7
xor al, al
jmp 0x1016f028
mov dword [ebp - 0x4001c], 0
mov dword [ebp - 0x40018], 0
mov dword [ebp - 0x40014], 0
xor eax, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40010]
mov dword [ebp - 0x40030], 0
mov dword [ebp - 0x4002c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x40040], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1016ed12
sub ecx, edx
lea eax, [ebp - 0x40010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40040]
call fcn.10008910
lea eax, [ebp - 0x4001c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40040]
push 0x1026318c
push eax
call fcn.1016e8b0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40040]
call fcn.10008820
mov ecx, dword [ebp - 0x40018]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x4001c]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
je 0x1016ed8d
xor bl, bl
jmp 0x1016f01b
cmp dword [esi + 0x14], 8
mov eax, esi
mov ebx, eax
jb 0x1016ed99
mov eax, dword [esi]
push eax
call fcn.101b1dc1
push edx
push eax
call fcn.1016d830
add esp, 0xc
lea eax, [ebx + 0x18]
lea ecx, [ebp - 0x40070]
push eax
call fcn.10009ad0
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40088]
call fcn.10009ad0
push 0x1026318c
lea eax, [ebp - 0x40058]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.1000d790
lea ecx, [ebp - 0x40070]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x40040]
push eax
call fcn.100c14a0
lea ecx, [ebp - 0x40088]
mov byte [ebp - 4], 5
push ecx
push eax
call fcn.1016e720
add esp, 0x20
lea ecx, [ebp - 0x40040]
mov bl, al
call fcn.10008820
lea ecx, [ebp - 0x40058]
mov byte [ebp - 4], 3
call fcn.10008820
test bl, bl
je 0x1016f003
lea eax, [ebp - 0x4001c]
push eax
push dword [ebp - 0x40018]
push esi
call fcn.1000e050
add esp, 0xc
mov dword [ebp - 0x40018], esi
lea ecx, [ebp - 0x40040]
push 0x10224910
call fcn.10008860
lea eax, [ebp - 0x4001c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x40040]
push eax
lea eax, [ebp - 0x40070]
push eax
call fcn.1016e8b0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40040]
call fcn.10008820
mov ecx, dword [ebp - 0x40018]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x4001c]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xb
jb 0x1016f003
cmp dword [esi + 0x14], 8
mov eax, esi
mov ebx, eax
jb 0x1016eec1
mov eax, dword [esi]
push eax
call fcn.101b1d97
mov dword [edi], eax
lea eax, [ebx + 0x18]
push eax
lea eax, [ebp - 0x40058]
push eax
call fcn.100c40b0
add esp, 0xc
lea ecx, [edi + 4]
push eax
call fcn.1000d580
lea ecx, [ebp - 0x40058]
call fcn.10008820
lea eax, [ebx + 0x30]
push eax
lea eax, [ebp - 0x40058]
push eax
call fcn.100c40b0
add esp, 8
lea ecx, [edi + 0x4c]
push eax
call fcn.1000d580
lea ecx, [ebp - 0x40058]
call fcn.10008820
cmp dword [esi + 0x5c], 8
lea eax, [esi + 0x48]
jb 0x1016ef22
mov eax, dword [eax]
push eax
call fcn.101b1d97
mov ecx, dword [ebp - 0x40090]
mov dword [ecx], eax
lea eax, [ebx + 0x60]
push eax
lea eax, [ebp - 0x40058]
push eax
call fcn.100c40b0
add esp, 0xc
lea ecx, [edi + 0x1c]
push eax
call fcn.1000d580
lea ecx, [ebp - 0x40058]
call fcn.10008820
cmp dword [esi + 0x8c], 8
lea eax, [esi + 0x78]
jb 0x1016ef65
mov eax, dword [eax]
push eax
call fcn.101b1d97
mov dword [edi + 0x3c], eax
add esp, 4
cmp dword [esi + 0xa4], 8
lea eax, [esi + 0x90]
jb 0x1016ef82
mov eax, dword [eax]
push eax
call fcn.101b1d97
mov dword [edi + 0x34], eax
add esp, 4
cmp dword [esi + 0xbc], 8
lea eax, [esi + 0xa8]
jb 0x1016ef9f
mov eax, dword [eax]
push eax
call fcn.101b1d97
mov dword [edi + 0x38], eax
add esp, 4
cmp dword [esi + 0xd4], 8
lea eax, [esi + 0xc0]
jb 0x1016efbc
mov eax, dword [eax]
push eax
call fcn.101b1d97
mov dword [edi + 0x40], eax
add esp, 4
cmp dword [esi + 0xec], 8
lea eax, [esi + 0xd8]
jb 0x1016efd9
mov eax, dword [eax]
push eax
call fcn.101b1d97
add esi, 0xf0
mov dword [edi + 0x44], eax
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x1016eff3
mov esi, dword [esi]
push esi
call fcn.101b1d97
add esp, 4
mov dword [edi + 0x48], eax
mov bl, 1
jmp 0x1016f005
xor bl, bl
lea ecx, [ebp - 0x40088]
call fcn.10008820
lea ecx, [ebp - 0x40070]
call fcn.10008820
lea ecx, [ebp - 0x4001c]
call fcn.1000d270
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.101912fd
mov esp, ebp
pop ebp
ret
call fcn.101ad149
int3