Function at 0x4593c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x8c
mov esi, dword [ebp + 8]
test esi, esi
je 0x4593e6
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4593e6
mov edx, dword [0x5349e4]
test edx, edx
jne 0x459408
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x459590
mov ecx, ebx
call method.sf::priv::WglContext.updateSettingsFromPixelFormat__
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
lea edx, [ecx + 4]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov edi, dword [ebp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], edi
call method.sf::priv::WglContext.selectBestPixelFormat_HDC____unsigned_int__sf::ContextSettings_const__bool_
test eax, eax
jle 0x4593e6
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [esp + 0x10], edx
mov edi, dword [ebp + 0x10]
mov dword [esp + 0xc], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call dword [0x5349c8]
mov dword [ebx + 0x2c], eax
sub esp, 0x14
test eax, eax
je 0x459648
mov edx, dword [esi + 0x28]
mov dword [ebx + 0x28], edx
mov dword [esp], eax
call dword [0x5349b8]
mov dword [ebx + 0x30], eax
sub esp, 4
test eax, eax
jne 0x4593f1
call method.sf.err__
mov dword [esp + 8], 0x30
lea esi, [ebp - 0x54]
mov dword [esp + 4], str.Failed_to_retrieve_pixel_buffer_device_context:
mov edi, eax
mov dword [esp], eax
call sym.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__int_
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x48]
mov dword [esp + 4], eax
mov dword [ebp - 0x5c], edx
mov dword [esp], edx
call method.sf::priv.getErrorString_unsigned_long_
mov ecx, esi
call fcn.004cc160
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x64], ecx
mov dword [esp + 4], esi
mov edx, dword [ebp - 0x5c]
mov dword [esp], edx
call method.sf::String.toAnsiString_abi:cxx11__std::locale_const__const
mov eax, dword [ebp - 0x2c]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__int_
mov edi, eax
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov eax, dword [edi + eax + 0x7c]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x4597a6
cmp byte [eax + 0x1c], 0
je 0x45976a
movsx eax, byte [eax + 0x27]
mov dword [esp], eax
mov ecx, edi
call sym.std::ostream::put_char_
sub esp, 4
mov ecx, eax
call sym.std::ostream::flush__
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
cmp edx, eax
je 0x45954b
mov eax, dword [ebp - 0x28]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call sym.operator_delete_void__unsigned_int_
mov ecx, esi
call sym.std::locale::locale__
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
cmp eax, edx
je 0x459572
mov edx, dword [ebp - 0x40]
mov dword [esp], eax
lea edx, [edx*4 + 4]
mov dword [esp + 4], edx
call sym.operator_delete_void__unsigned_int_
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call dword [0x5349c4]
mov dword [ebx + 0x2c], 0
mov eax, dword [ebx + 0x30]
sub esp, 4
jmp 0x4593e9
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x88000000
mov dword [esp + 8], 0x4f67fc
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
sub esp, 0x30
mov dword [ebx + 0x28], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x28]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDC]
mov byte [ebx + 0x38], 1
mov ecx, ebx
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x14]
sub esp, 4
mov dword [esp], eax
call method.sf::priv::WglContext.setDevicePixelFormat_unsigned_int_
sub esp, 4
jmp 0x4593f1
call method.sf.err__
mov dword [esp + 8], 0x1f
lea esi, [ebp - 0x54]
mov dword [esp + 4], str.Failed_to_create_pixel_buffer:
mov edi, eax
mov dword [esp], eax
call sym.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__int_
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x48]
mov dword [esp + 4], eax
mov dword [ebp - 0x5c], edx
mov dword [esp], edx
call method.sf::priv.getErrorString_unsigned_long_
mov ecx, esi
call fcn.004cc160
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x64], ecx
mov dword [esp + 4], esi
mov edx, dword [ebp - 0x5c]
mov dword [esp], edx
call method.sf::String.toAnsiString_abi:cxx11__std::locale_const__const
mov eax, dword [ebp - 0x2c]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__int_
mov edi, eax
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov eax, dword [edi + eax + 0x7c]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x4597a1
cmp byte [eax + 0x1c], 0
je 0x459737
movsx eax, byte [eax + 0x27]
mov dword [esp], eax
mov ecx, edi
call sym.std::ostream::put_char_
sub esp, 4
mov ecx, eax
call sym.std::ostream::flush__
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
cmp edx, eax
je 0x459707
mov eax, dword [ebp - 0x28]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call sym.operator_delete_void__unsigned_int_
mov ecx, esi
call sym.std::locale::locale__
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
cmp eax, edx
je 0x4593e6
mov edx, dword [ebp - 0x40]
mov dword [esp], eax
lea edx, [edx*4 + 4]
mov dword [esp + 4], edx
call sym.operator_delete_void__unsigned_int_
jmp 0x4593e6
mov ecx, eax
call sym.std::ctype_char_::_M_widen_init___const
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov edx, dword [eax + 0x18]
mov eax, 0xa
cmp edx, method.std::ctype_char_.do_widen_char__const
je 0x4596d7
mov dword [esp], 0xa
mov ecx, dword [ebp - 0x60]
call edx
sub esp, 4
movsx eax, al
jmp 0x4596d7
mov ecx, eax
call sym.std::ctype_char_::_M_widen_init___const
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov edx, dword [eax + 0x18]
mov eax, 0xa
cmp edx, method.std::ctype_char_.do_widen_char__const
je 0x45951b
mov dword [esp], 0xa
mov ecx, dword [ebp - 0x60]
call edx
sub esp, 4
movsx eax, al
jmp 0x45951b
call sym.std::__throw_bad_cast__
call sym.std::__throw_bad_cast__
mov ebx, eax
jmp 0x4e2e36