Function at 0x4042f0
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x422663
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x4306a0]
push ebx
push ebp
push esi
mov dword [esp + 0x128], eax
push edi
mov dword [esp + 0x138], 2
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, 0x430708
call fcn.00402eb0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x10]
push edx
push eax
xor esi, esi
push ecx
mov dword [esp + 0x1c], esi
call fcn.00403190
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
jne 0x4046dc
mov eax, dword [esp + 0x198]
mov edi, 0x10
cmp eax, edi
mov dword [esp + 0x14], 3
jb 0x40438b
mov edx, dword [esp + 0x184]
mov dword [esp + 0x38], edx
jmp 0x404396
lea eax, [esp + 0x184]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x19c]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], 0x4038e0
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
lea eax, [esp + 0x144]
push str.FFAE5C58_326B_483b_AEC8_08AADB7FCB58
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebp, dword [sym.imp.USER32.dll_SetWindowRgn]
add esp, 8
test al, al
je 0x404566
push 0x4269b0
lea ecx, [esp + 0x148]
mov dword [esp + 0x14], 1
call dword [0x426430]
call fcn.00403f80
push 1
push str.CntrResolution
push 0x426a24
mov ecx, 0x435238
call sub.MFC71.DLL_CWinApp::GetProfileIntA
test eax, eax
jne 0x404458
push esi
lea ecx, [esp + 0x18]
push ecx
push 0x14
push 0x30
mov dword [esp + 0x24], 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x4044db
xor edx, edx
mov dword [esp + 0x91], edx
mov dword [esp + 0x95], edx
mov dword [esp + 0x99], edx
mov dword [esp + 0x9d], edx
mov dword [esp + 0xa1], edx
mov dword [esp + 0xa5], edx
mov dword [esp + 0xa9], edx
mov word [esp + 0xad], dx
xor eax, eax
mov byte [esp + 0x90], 0
mov byte [esp + 0xaf], dl
mov ecx, 0x1f
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x90]
push eax
push 0xffffffffffffffff
push esi
mov word [esp + 0xc0], 0x9c
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0x100]
push ecx
push eax
push esi
push esi
call ebx
mov ecx, dword [0x4306fc]
push 1
mov esi, eax
push esi
push ecx
call ebp
mov edx, dword [0x4306fc]
push 0x181
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
mov eax, dword [0x4306fc]
push 0x43
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [0x4306fc]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 3
push 0x45c
push ecx
call esi
mov edx, dword [0x4306fc]
mov eax, dword [0x4352e8]
push edx
push 0x2bc
push 0x45c
push eax
mov dword [0x436930], 1
call esi
xor esi, esi
mov edi, 0x10
cmp dword [esp + 0x15c], edi
mov ecx, dword [esp + 0x148]
jae 0x40457d
lea ecx, [esp + 0x148]
cmp dword [esp + 0x198], edi
mov eax, dword [esp + 0x184]
jae 0x404594
lea eax, [esp + 0x184]
mov edx, dword [esp + 0x17c]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push edx
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push 0
push 0
push 0
mov esi, eax
call ebx
push 1
mov edi, eax
push edi
push esi
call ebp
push 0x181
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0xa
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x430714
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov bl, 4
mov byte [esp + 0x138], bl
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x160]
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], eax
call dword [0x426438]
sub esp, 0x24
lea edx, [esp + 0x90]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004029b0
mov byte [esp + 0x15c], bl
mov eax, dword [esp + 0x164]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.00402cc0
add esp, 0x2c
mov byte [esp + 0x138], 6
push eax
lea ecx, [esp + 0x18]
call fcn.00402ae0
mov byte [esp + 0x138], 7
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, 0x430708
call fcn.00403330
mov byte [esp + 0x138], 6
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x138], 6
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x138], bl
lea edx, [esp + 0x48]
mov dword [esp + 0x10], edx
mov byte [esp + 0x138], bl
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x430714
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x138], 2
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x138], 1
lea ecx, [esp + 0x144]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x138], 0
lea ecx, [esp + 0x160]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esp + 0x138], 0xffffffff
lea ecx, [esp + 0x180]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
call fcn.00421871
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret