Function at 0x4405a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x288
mov eax, dword [0x4fc00c]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
push 2
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x10]
push edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], ecx
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
jne 0x4405fc
cmp dword [0x502c60], eax
jg 0x4405ea
xor ecx, ecx
xor edx, edx
xor esi, esi
xor edi, edi
jmp 0x440624
mov eax, dword [0x502c64]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
jmp 0x440624
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoA]
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
sub esi, ecx
mov edi, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
sub edi, edx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], edx
cmp eax, 1
jne 0x4406a9
movzx eax, word [ebp + 0xc]
push eax
movzx eax, word [ebp + 8]
push eax
push 0
push 0
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0
push 0x90c80000
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
movzx ecx, ax
mov eax, dword [esp + 0x58]
sub edi, ecx
sub eax, dword [esp + 0x50]
push 0x40
push ecx
movzx eax, ax
sub esi, eax
sar edi, 1
add edi, dword [esp + 0x18]
push eax
push edi
sar esi, 1
add esi, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x40]
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x90c80000
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x4406d5
cmp eax, 2
jne 0x4406d1
push 0x40
push edi
push esi
mov esi, dword [esp + 0x38]
push edx
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x90000000
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x4406d5
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
cmp edi, 1
jne 0x44070c
mov eax, dword [esp + 0x48]
movzx edx, word [ebp + 0xc]
movzx ecx, word [ebp + 8]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
jmp 0x440740
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x4c]
mov eax, esi
mov ecx, dword [esp + 0x44]
sub eax, ecx
movzx edx, ax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
sub eax, ecx
mov dword [esp + 0x10], ecx
movzx ecx, ax
mov eax, dword [esp + 0x3c]
push 0x200
push 0
mov word [eax], cx
mov word [eax + 2], dx
lea eax, [esp + 0x90]
push eax
call fcn.0047ebc0
mov ecx, dword [esp + 0x48]
add esp, 0xc
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
movzx eax, word [ebp + 0xc]
push esi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x24]
push eax
movzx eax, word [ebp + 8]
push eax
push edi
lea eax, [esp + 0xac]
push str.C12WindowState:_Mode:_d__runReso__d__d__window__d__d__d__d____winReso__d__d__n
push eax
call fcn.0044d1b0
add esp, 0x2c
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
xor ecx, esp
call fcn.0047d312
mov esp, ebp
pop ebp
ret