Function at 0x10032460
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047e69
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push edi
mov esi, ecx
push edi
lea ecx, [ebp - 0x18]
call dword [sym.imp.rlmfc.dll_public:_void___thiscall_M_FPUControl::constructor_enum_M_FPUControl::Rounding__enum_M_FPUControl::Precision_]
cmp dword [esi + 0xbc], 2
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
jle 0x100324a7
mov ecx, esi
call sym.e2mfc.dll_public:_void___thiscall_P_Driver::restoreDisplayMode_void_
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov ecx, esi
mov dword [esi + 4], eax
mov dword [esi + 0xa0], ebx
mov dword [esi + 0x14], 1
call sym.e2mfc.dll_public:_class_P_DriverCaps_const____thiscall_P_Driver::getDriverCaps_void_const
mov ecx, eax
call sym.e2mfc.dll_public:_bool___thiscall_P_DriverCaps::canRenderToWindow_void_const
test al, al
jne 0x10032550
mov esi, dword [sym.imp.rlmfc.dll_protected:_void___thiscall_R_Exception::constructor_void_]
lea ecx, [ebp - 0x24]
call esi
lea edx, [ebp - 0x24]
push str.This_device_cant_render_to_window_in_this_Windows_color_depth
mov edi, vtable.P_DriverException_Failed.0
push edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], edi
call dword [sym.imp.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__]
add esp, 8
mov al, byte [0x10066d2c]
test al, 1
mov byte [ebp - 4], 3
jne 0x1003252c
or al, 1
mov ecx, 0x10066d30
mov byte [0x10066d2c], al
call esi
push 0x100339c0
mov dword [0x10066d30], edi
call fcn.100455b8
add esp, 4
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x10066d30
call dword [sym.imp.rlmfc.dll_public:_class_R_Exception____thiscall_R_Exception::operator_class_R_Exception_const__]
push 0x1004efa0
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], 0x10066d30
call sub.MSVCRT.dll__CxxThrowException
mov ecx, esi
call sym.e2mfc.dll_public:_class_P_DriverCaps_const____thiscall_P_Driver::getDriverCaps_void_const
mov ecx, dword [ebp + 0x14]
add eax, 0x7f
cmp ecx, edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], ecx
jne 0x10032572
push eax
mov ecx, esi
call fcn.10032010
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esi + 0x1c]
mov dl, byte [ebp + 0x18]
push eax
push ecx
mov ecx, esi
mov byte [esi + 0x24], dl
call fcn.10032170
mov dl, byte [ebp + 0x20]
push ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], edi
mov byte [esi + 0x2d], dl
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0xc
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edi
push ebx
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
add eax, 7
shr eax, 3
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc4]
push eax
mov ecx, esi
mov dword [esi + 0xbc], 3
call dword [edx + 0x44]
mov eax, dword [esi + 0xc4]
mov edx, dword [esi]
inc eax
mov ecx, esi
mov dword [esi + 0xc4], eax
call dword [edx + 0x64]
mov ecx, esi
call sym.e2mfc.dll_private:_void___thiscall_P_Driver::validateDriverObjects_void_
push str.setWindowMode_n
call sym.e2mfc.dll_public:_static_class_P_Device____fastcall_P_Driver::getDevice_void_
push eax
call sym.e2mfc.dll_public:_void___cdecl_P_Device::runtimeVerbose_char_const__
add esp, 8
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.rlmfc.dll_public:_void___thiscall_M_FPUControl::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c