Function at 0x10036680
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016b068
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101f0014]
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 + 8]
xor bh, bh
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
cmp dword [eax + 0x14], 8
jb 0x100366be
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10036799
cmp dword [0x101f4a2c], 0
je 0x10036968
push 0
mov ecx, 0x101f4a2c
call fcn.1014c4b0
mov eax, dword [0x101f4a2c]
cmp byte [eax + 0x54], 0
je 0x10036968
cmp dword [eax + 0x58], 2
jb 0x10036968
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push 0x1019cb8c
push eax
call fcn.100b1860
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x101f4a2c
push 0x1b7
push str.RC::RCNewTabPageCfgMapMgr::GetProcFileBitInfo
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdhipswebprotect_src_newtabpagelock_rcnewtabpageconfigmgr.cpp
push eax
push 2
call fcn.1014ce30
test bl, bl
je 0x10036785
lea eax, [ebp - 0x28]
mov ecx, 0x101f4a2c
push eax
call fcn.1014d150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10007c90
jmp 0x10036968
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x10036861
cmp dword [0x101f4a2c], eax
je 0x10036961
push eax
mov ecx, 0x101f4a2c
call fcn.1014c4b0
mov eax, dword [0x101f4a2c]
cmp byte [eax + 0x54], 0
je 0x10036961
cmp dword [eax + 0x58], 2
jb 0x10036961
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push 0x1019cc14
push eax
call fcn.100b1860
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x101f4a2c
push 0x1be
push str.RC::RCNewTabPageCfgMapMgr::GetProcFileBitInfo
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdhipswebprotect_src_newtabpagelock_rcnewtabpageconfigmgr.cpp
push eax
push 2
call fcn.1014ce30
test bl, bl
je 0x1003684d
lea eax, [ebp - 0x28]
mov ecx, 0x101f4a2c
push eax
call fcn.1014d150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10007c90
jmp 0x10036961
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
jne 0x10036927
cmp dword [0x101f4a2c], eax
je 0x1003695a
push eax
mov ecx, 0x101f4a2c
call fcn.1014c4b0
mov eax, dword [0x101f4a2c]
cmp byte [eax + 0x54], 0
je 0x1003695a
cmp dword [eax + 0x58], 2
jb 0x1003695a
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
push 0xd
push 0x1019cc3c
call fcn.10007cf0
push 0x1c5
push str.RC::RCNewTabPageCfgMapMgr::GetProcFileBitInfo
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdhipswebprotect_src_newtabpagelock_rcnewtabpageconfigmgr.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101f4a2c
push eax
push 2
call fcn.1014ce30
test bl, bl
je 0x10036916
lea eax, [ebp - 0x28]
mov ecx, 0x101f4a2c
push eax
call fcn.1014d150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10007c90
jmp 0x1003695a
mov eax, dword [ecx + 0x3c]
mov edx, 0x10b
movzx eax, word [eax + ecx + 0x18]
cmp ax, dx
jne 0x10036941
mov eax, dword [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10036951
mov edx, 0x20b
cmp ax, dx
jne 0x10036953
mov eax, dword [ebp - 0x2c]
mov byte [eax], 1
mov bh, 1
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
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.101606b4
mov esp, ebp
pop ebp
ret 8