Function at 0x10037820
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101713ae
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x101f9014]
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
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 0x74], eax
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x1003786e
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
mov dword [ebp - 4], 0
mov al, byte [esi]
test al, al
je 0x10037882
mov bl, 1
jmp 0x10037b61
cmp dword [esi + 0xc], 0
jne 0x1003788f
xor bl, bl
jmp 0x10037b61
push 9
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x8c]
push str.DU01.data
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
call fcn.10007df0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.100ab470
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1012e2f0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.10007d90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
call fcn.10007d90
cmp dword [ebp - 0x60], 0
je 0x10037b53
lea eax, [ebp - 0x70]
push eax
lea ecx, [esi + 0x4c]
call dword [sym.imp.BasicSQLite.dll_public:_bool___thiscall_RC::RCSQLiteConnection::LoadDB_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esi + 0x6c]
xchg byte [ecx], al
mov al, byte [ecx]
test al, al
jne 0x100379bc
push 2
mov ecx, 0x101fdd8c
call fcn.101530d0
mov esi, eax
test esi, esi
je 0x10037b53
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 byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
push 0xd
push 0x101a3d70
call fcn.10007df0
push 0x4c
push str.RC::RCNewTabPageCfgMapMgr::Init
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdhipswebprotect_src_newtabpagelock_rcnewtabpageconfigmgr.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fdd8c
push eax
push 2
call fcn.10153110
cmp esi, 1
jbe 0x100379ab
lea eax, [ebp - 0x28]
mov ecx, 0x101fdd8c
push eax
call fcn.10153430
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10007d90
jmp 0x10037b53
push 0x3e8
lea ecx, [esi + 0xc]
call fcn.101360d0
test al, al
jne 0x10037a5c
push 2
mov ecx, 0x101fdd8c
call fcn.101530d0
mov esi, eax
test esi, esi
je 0x10037b53
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
push 0x10
push 0x101a3ed8
call fcn.10007df0
push 0x52
push str.RC::RCNewTabPageCfgMapMgr::Init
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdhipswebprotect_src_newtabpagelock_rcnewtabpageconfigmgr.cpp
lea eax, [ebp - 0x40]
mov ecx, 0x101fdd8c
push eax
push 2
call fcn.10153110
cmp esi, 1
jbe 0x10037a4b
lea eax, [ebp - 0x40]
mov ecx, 0x101fdd8c
push eax
call fcn.10153430
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.10007d90
jmp 0x10037b53
push str.RC_SAFE_F7B7DE7F_BFAB_4F89_A893_B89D9B216C8C
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x10037b4b
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
je 0x10037b3b
push 0x1000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov al, 1
xchg byte [esi], al
lea ecx, [esi + 0xc]
call fcn.10136100
push 2
mov ecx, 0x101fdd8c
call fcn.101530d0
mov esi, eax
test esi, esi
je 0x10037b37
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x58]
push 0x10
push 0x101a3f5c
call fcn.10007df0
push 0x60
push str.RC::RCNewTabPageCfgMapMgr::Init
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdhipswebprotect_src_newtabpagelock_rcnewtabpageconfigmgr.cpp
lea eax, [ebp - 0x58]
mov ecx, 0x101fdd8c
push eax
push 2
call fcn.10153110
cmp esi, 1
jbe 0x10037b2b
lea eax, [ebp - 0x58]
mov ecx, 0x101fdd8c
push eax
call fcn.10153430
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.10007d90
mov bl, 1
jmp 0x10037b55
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
lea ecx, [esi + 0xc]
call fcn.10136100
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.10007d90
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x74]
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
test eax, eax
je 0x10037b82
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
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.101669b4
mov esp, ebp
pop ebp
ret