Function at 0x466650
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x50c080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ecx + 4]
mov dword [ebp - 0xf0], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x60
push 0x64
push eax
call ebx
mov dword [0x50cf88], eax
test esi, esi
je 0x46669d
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xc
call esi
push 0xb
mov edi, eax
call esi
push 0
push edi
push eax
push 1
push 0x80
push dword [0x50fc80]
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, dword [ebp - 0xf0]
mov esi, eax
push esi
push 1
push 0x80
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push 0
push 0x80
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [edi + 0x9c]
mov esi, eax
test ecx, ecx
je 0x46670d
cmp ecx, esi
je 0x46670d
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0x9c], esi
mov esi, 0x17
cmp byte [0x50cf8c], 0
je 0x46672e
push 0x64
push dword [0x50cf88]
push esi
call ebx
mov esi, eax
push 0x5c
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00493220
add esp, 0xc
lea eax, [ebp - 0x6c]
push dword [0x4ebb3c]
push 0x20
push eax
call fcn.0049ceca
add esp, 0xc
mov dword [ebp - 0x78], 0x258
lea eax, [ebp - 0x88]
mov byte [ebp - 0x70], 7
neg esi
mov byte [ebp - 0x6e], 5
mov dword [ebp - 0x88], esi
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [edi + 0xa0], eax
mov esi, 0x10
cmp byte [0x50cf8c], 0
je 0x46679a
push 0x64
push dword [0x50cf88]
push esi
call ebx
mov esi, eax
push 0x5c
lea eax, [ebp - 0xe8]
push 0
push eax
call fcn.00493220
add esp, 0xc
lea eax, [ebp - 0xcc]
push dword [0x4ebb40]
push 0x20
push eax
call fcn.0049ceca
add esp, 0xc
mov dword [ebp - 0xd8], 0x190
neg esi
mov byte [ebp - 0xd0], 7
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], esi
mov esi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov byte [ebp - 0xce], 5
call esi
mov dword [edi + 0xa4], eax
cmp byte [0x50cf8c], 0
mov dword [ebp - 0xec], 0xf
je 0x46681e
push 0x64
push dword [0x50cf88]
push 0xf
call ebx
mov dword [ebp - 0xec], eax
push 0x5c
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00493220
add esp, 0xc
lea eax, [ebp - 0x6c]
push dword [0x4ebb44]
push 0x20
push eax
call fcn.0049ceca
mov eax, dword [ebp - 0xec]
add esp, 0xc
neg eax
mov dword [ebp - 0x78], 0x2bc
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
mov byte [ebp - 0x70], 7
push eax
mov byte [ebp - 0x6e], 5
call esi
mov dword [edi + 0xa8], eax
cmp byte [0x50cf8c], 0
mov dword [ebp - 0xec], 0xf
je 0x466896
push 0x64
push dword [0x50cf88]
push 0xf
call ebx
mov dword [ebp - 0xec], eax
push 0x5c
lea eax, [ebp - 0xe8]
push 0
push eax
call fcn.00493220
add esp, 0xc
lea eax, [ebp - 0xcc]
push dword [0x4ebb48]
push 0x20
push eax
call fcn.0049ceca
mov eax, dword [ebp - 0xec]
add esp, 0xc
neg eax
mov dword [ebp - 0xd8], 0x258
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xe8]
mov byte [ebp - 0xd0], 7
push eax
mov byte [ebp - 0xce], 5
call esi
mov dword [edi + 0xac], eax
cmp byte [0x50cf8c], 0
mov dword [ebp - 0xec], 0xa
je 0x46691a
push 0x64
push dword [0x50cf88]
push 0xa
call ebx
mov dword [ebp - 0xec], eax
push 0x5c
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00493220
add esp, 0xc
lea eax, [ebp - 0x6c]
push dword [0x4ebb4c]
push 0x20
push eax
call fcn.0049ceca
mov eax, dword [ebp - 0xec]
add esp, 0xc
neg eax
mov dword [ebp - 0x78], 0x190
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
mov byte [ebp - 0x70], 7
push eax
mov byte [ebp - 0x6e], 5
call esi
mov dword [edi + 0xb0], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [0x50cf8c], 0
mov eax, dword [0x50d488]
mov esi, dword [0x50d48c]
je 0x4669d6
push 0x64
push dword [0x50cf88]
push eax
call ebx
cmp byte [0x50cf8c], 0
mov dword [ebp - 0xf0], eax
je 0x4669d6
push 0x64
push dword [0x50cf88]
push esi
call ebx
mov esi, eax
mov eax, dword [ebp - 0xf0]
sub esi, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
sub esi, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
add esi, dword [ebp - 0x10]
add esi, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
push 0
push esi
push eax
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [0x50cf88]
mov esi, dword [edi + 0x9c]
cmp eax, 0x7d
jae 0x466a16
mov eax, 0xa
jmp 0x466a2e
cmp eax, 0x96
jae 0x466a24
mov eax, 0xb
jmp 0x466a2e
cmp eax, 0xc8
sbb eax, eax
add eax, 0xd
cmp dword [edi + 0x48], eax
je 0x466a67
mov ecx, dword [edi + 0x44]
mov dword [edi + 0x48], eax
test ecx, ecx
je 0x466a43
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [edi + 0x24]
mov dword [edi + 0x44], 0
mov dword [edi + 0x4c], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x466a67
push 1
push 0
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x3e8
push dword [edi + 4]
lea esi, [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0xec], eax
call dword [edx + 8]
mov dword [ebp - 0xf0], eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x466a9e
call fcn.00490a9c
mov dword [esi + 0x14], eax
test eax, eax
je 0x466ad2
push esi
push dword [ebp - 0xf0]
push eax
call fcn.00490b9e
push dword [esi + 0x14]
call fcn.00490b01
push eax
push 0xfffffffffffffffc
push dword [ebp - 0xec]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x466ad2
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0xec]
mov dword [esi + 4], eax
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push dword [edi + 4]
call esi
lea ecx, [edi + 0x50]
mov dword [ecx], eax
push 0x3ea
push dword [edi + 4]
mov dword [ebp - 0x10c], ecx
call esi
lea ecx, [edi + 0x54]
mov dword [ecx], eax
lea esi, [edi + 0x58]
push 0x3eb
push dword [edi + 4]
mov dword [ebp - 0xf0], ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0xec], eax
call dword [edx + 8]
mov dword [ebp - 0xf8], eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x466b39
call fcn.00490a9c
mov dword [esi + 0x14], eax
test eax, eax
je 0x466b6d
push esi
push dword [ebp - 0xf8]
push eax
call fcn.00490b9e
push dword [esi + 0x14]
call fcn.00490b01
push eax
push 0xfffffffffffffffc
push dword [ebp - 0xec]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x466b6d
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0xec]
mov dword [esi + 4], eax
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ec
push dword [edi + 4]
call esi
lea ecx, [edi + 0x94]
mov dword [ecx], eax
push 0x3ed
push dword [edi + 4]
mov dword [ebp - 0x114], ecx
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [edi + 0x98]
push 1
mov dword [ecx], eax
push dword [edi + 0xa0]
mov dword [ebp - 0x118], ecx
push 0x30
push dword [edi + 0x50]
call esi
push 1
push dword [edi + 0xa4]
push 0x30
push dword [edi + 0x54]
call esi
push 1
push dword [edi + 0xa8]
lea eax, [edi + 0x5c]
push 0x30
push dword [eax]
mov dword [ebp - 0x110], eax
call esi
push 1
push dword [edi + 0xac]
push 0x30
push dword [edi + 0x94]
call esi
push 1
push dword [edi + 0xb0]
push 0x30
push dword [edi + 0x98]
call esi
mov dword [edi + 0x7c], 0xffffff
mov dword [edi + 0x80], 0xcc3e0d
mov dword [edi + 0x84], 0xcc3e0d
mov dword [edi + 0x88], 0xffff
mov dword [edi + 0x8c], 0xffff00
mov dword [edi + 0x90], 0xff00ff
cmp byte [0x50cf8c], 0
mov edx, dword [0x50d47c]
mov eax, dword [0x50d480]
mov ecx, dword [0x50d478]
mov esi, dword [0x50d484]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xec], eax
je 0x466cf0
push 0x64
push dword [0x50cf88]
push ecx
call ebx
mov cl, byte [0x50cf8c]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xec]
test cl, cl
je 0x466c9d
push 0x64
push dword [0x50cf88]
push eax
call ebx
mov cl, byte [0x50cf8c]
mov dword [ebp - 0xec], eax
test cl, cl
je 0x466cc1
push 0x64
push dword [0x50cf88]
push dword [ebp - 0xf8]
call ebx
mov cl, byte [0x50cf8c]
mov edx, eax
jmp 0x466cc7
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xf8], edx
test cl, cl
je 0x466ce4
push 0x64
push dword [0x50cf88]
push esi
call ebx
mov edx, dword [ebp - 0xf8]
mov esi, eax
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xf4]
push 0
sub esi, edx
sub eax, ecx
push esi
push eax
push edx
push ecx
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [0x50cf8c], 0
mov eax, dword [0x50d494]
mov ecx, dword [0x50d490]
mov edi, dword [0x50d498]
mov esi, dword [0x50d49c]
mov dword [ebp - 0xec], eax
je 0x466d9c
push 0x64
push dword [0x50cf88]
push ecx
call ebx
mov cl, byte [0x50cf8c]
mov dword [ebp - 0xf4], eax
test cl, cl
je 0x466d73
push 0x64
push dword [0x50cf88]
push edi
call ebx
mov cl, byte [0x50cf8c]
mov edi, eax
test cl, cl
je 0x466d73
push 0x64
push dword [0x50cf88]
push dword [ebp - 0xec]
call ebx
mov cl, byte [0x50cf8c]
jmp 0x466d79
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xec], eax
test cl, cl
je 0x466d96
push 0x64
push dword [0x50cf88]
push esi
call ebx
mov esi, eax
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xf4]
push 0
sub esi, eax
sub edi, ecx
push esi
push edi
push eax
mov eax, dword [ebp - 0x10c]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [0x50cf8c], 0
mov eax, dword [0x50d4a4]
mov ecx, dword [0x50d4a0]
mov edi, dword [0x50d4a8]
mov esi, dword [0x50d4ac]
mov dword [ebp - 0xec], eax
je 0x466e4d
push 0x64
push dword [0x50cf88]
push ecx
call ebx
mov cl, byte [0x50cf8c]
mov dword [ebp - 0xf4], eax
test cl, cl
je 0x466e24
push 0x64
push dword [0x50cf88]
push edi
call ebx
mov cl, byte [0x50cf8c]
mov edi, eax
test cl, cl
je 0x466e24
push 0x64
push dword [0x50cf88]
push dword [ebp - 0xec]
call ebx
mov cl, byte [0x50cf8c]
jmp 0x466e2a
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xec], eax
test cl, cl
je 0x466e47
push 0x64
push dword [0x50cf88]
push esi
call ebx
mov esi, eax
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xf4]
push 0
sub esi, eax
sub edi, ecx
push esi
push edi
push eax
mov eax, dword [ebp - 0xf0]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [0x50cf8c], 0
mov eax, dword [0x50d4b4]
mov ecx, dword [0x50d4b0]
mov edi, dword [0x50d4b8]
mov esi, dword [0x50d4bc]
mov dword [ebp - 0xec], eax
je 0x466efe
push 0x64
push dword [0x50cf88]
push ecx
call ebx
mov cl, byte [0x50cf8c]
mov dword [ebp - 0xf4], eax
test cl, cl
je 0x466ed5
push 0x64
push dword [0x50cf88]
push edi
call ebx
mov cl, byte [0x50cf8c]
mov edi, eax
test cl, cl
je 0x466ed5
push 0x64
push dword [0x50cf88]
push dword [ebp - 0xec]
call ebx
mov cl, byte [0x50cf8c]
jmp 0x466edb
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xec], eax
test cl, cl
je 0x466ef8
push 0x64
push dword [0x50cf88]
push esi
call ebx
mov esi, eax
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xf4]
push 0
sub esi, eax
sub edi, ecx
push esi
push edi
mov edi, dword [ebp - 0x110]
push eax
push ecx
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [0x50cf8c], 0
movups xmm0, xmmword [0x50d4c0]
movups xmmword [ebp - 0x108], xmm0
je 0x466fa9
push 0x64
push dword [0x50cf88]
push dword [0x50d4c0]
call ebx
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x108], eax
mov al, byte [0x50cf8c]
test al, al
je 0x466f64
push 0x64
push dword [0x50cf88]
push ecx
call ebx
mov ecx, eax
mov al, byte [0x50cf8c]
mov dword [ebp - 0x100], ecx
mov ecx, dword [ebp - 0x104]
test al, al
je 0x466f86
push 0x64
push dword [0x50cf88]
push ecx
call ebx
mov ecx, eax
mov al, byte [0x50cf8c]
mov dword [ebp - 0x104], ecx
mov ecx, dword [ebp - 0xfc]
test al, al
je 0x466fa3
push 0x64
push dword [0x50cf88]
push ecx
call ebx
mov ecx, eax
mov dword [ebp - 0xfc], ecx
mov esi, dword [ebp - 0x114]
lea edx, [ebp - 0x108]
push 0x3fc
mov ecx, esi
call fcn.004474f0
movups xmm0, xmmword [0x50d4d0]
add esp, 4
cmp byte [0x50cf8c], 0
movups xmmword [ebp - 0x108], xmm0
je 0x467057
push 0x64
push dword [0x50cf88]
push dword [0x50d4d0]
call ebx
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x108], eax
mov al, byte [0x50cf8c]
test al, al
je 0x467012
push 0x64
push dword [0x50cf88]
push ecx
call ebx
mov ecx, eax
mov al, byte [0x50cf8c]
mov dword [ebp - 0x100], ecx
mov ecx, dword [ebp - 0x104]
test al, al
je 0x467034
push 0x64
push dword [0x50cf88]
push ecx
call ebx
mov ecx, eax
mov al, byte [0x50cf8c]
mov dword [ebp - 0x104], ecx
mov ecx, dword [ebp - 0xfc]
test al, al
je 0x467051
push 0x64
push dword [0x50cf88]
push ecx
call ebx
mov ecx, eax
mov dword [ebp - 0xfc], ecx
mov ecx, dword [ebp - 0x118]
lea edx, [ebp - 0x108]
push 0x3fd
call fcn.004474f0
xor edx, edx
add esp, 4
cmp byte [0x51093e], dl
je 0x46708b
cmp byte [0x51093d], dl
setne dl
add edx, 0x3f2
jmp 0x46709a
cmp byte [0x51093d], dl
setne dl
add edx, 0x3e8
mov ecx, dword [ebp - 0x10c]
push 0
call fcn.004478f0
mov al, byte [0x51093e]
add esp, 4
test al, al
jne 0x4670cd
mov ecx, dword [ebp - 0xf0]
mov edx, 0x3ea
push 0
call fcn.004478f0
mov al, byte [0x51093e]
add esp, 4
test al, al
mov ecx, 0x3f4
mov edx, 0x3eb
cmovne edx, ecx
mov ecx, edi
push 0
call fcn.004478f0
add esp, 4
cmp byte [0x510938], 0
jne 0x4670fa
cmp byte [0x51093e], 0
je 0x467104
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490c46
mov esp, ebp
pop ebp
ret 0x10