Function at 0x424540
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b8a6
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x49d548]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
test edi, edi
je 0x42473c
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x42473c
cmp dword [0x4a00bc], 1
jne 0x42473c
push 1
lea eax, [esi + 8]
push eax
push dword [ebp + 0x14]
push ecx
call fcn.00425070
add esp, 0x10
test eax, eax
jle 0x42473c
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0
push ecx
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0
push dword [ebp - 0x78]
push eax
push dword [edi + 0x38]
call dword [0x4a00dc]
mov dword [esi + 0x34], eax
test eax, eax
je 0x4246a5
mov ecx, dword [edi + 0x30]
push eax
mov dword [esi + 0x30], ecx
call dword [0x4a00e4]
mov dword [esi + 0x38], eax
test eax, eax
jne 0x42473c
push 1
mov dword [ebp - 4], eax
call sub.MSVCP140.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_
add esp, 4
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00424820
add esp, 8
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0042b380
push 0x4047b0
push eax
push str.Failed_to_retrieve_pixel_buffer_device_context:
mov byte [ebp - 4], 3
call fcn.0042b6b0
push eax
call fcn.00404570
add esp, 8
push eax
call fcn.00406cc0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0x28]
call fcn.004018f0
lea ecx, [ebp - 0x40]
call fcn.00401790
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
call fcn.004012d0
push dword [esi + 0x34]
call dword [0x4a00e0]
mov dword [esi + 0x34], 0
jmp 0x42473c
push 1
mov dword [ebp - 4], 4
call sub.MSVCP140.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_
add esp, 4
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00424820
add esp, 8
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.0042b380
push 0x4047b0
push eax
push str.Failed_to_create_pixel_buffer:
mov byte [ebp - 4], 7
call fcn.0042b6b0
push eax
call fcn.00404570
add esp, 8
push eax
call fcn.00406cc0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0x58]
call fcn.004018f0
lea ecx, [ebp - 0x70]
call fcn.00401790
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0xffffffff
call fcn.004012d0
cmp dword [esi + 0x38], 0
jne 0x424798
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push 0
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 0
push 0
push 0x88000000
push 0x47ee50
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [esi + 0x30], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebp + 0x14]
mov ecx, esi
mov dword [esi + 0x38], eax
mov byte [esi + 0x40], 1
call fcn.00425760
mov ecx, esi
call fcn.00425bb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00478d37
mov esp, ebp
pop ebp
ret 0x10