Function at 0x466690
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x50b080]
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 [0x50bf88], eax
test esi, esi
je 0x4666dd
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 [0x50ec80]
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 0x46674d
cmp ecx, esi
je 0x46674d
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0x9c], esi
mov esi, 0x17
cmp byte [0x50bf8c], 0
je 0x46676e
push 0x64
push dword [0x50bf88]
push esi
call ebx
mov esi, eax
push 0x5c
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00492970
add esp, 0xc
lea eax, [ebp - 0x6c]
push dword [0x4eab3c]
push 0x20
push eax
call fcn.0049c61a
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 [0x50bf8c], 0
je 0x4667da
push 0x64
push dword [0x50bf88]
push esi
call ebx
mov esi, eax
push 0x5c
lea eax, [ebp - 0xe8]
push 0
push eax
call fcn.00492970
add esp, 0xc
lea eax, [ebp - 0xcc]
push dword [0x4eab40]
push 0x20
push eax
call fcn.0049c61a
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 [0x50bf8c], 0
mov dword [ebp - 0xec], 0xf
je 0x46685e
push 0x64
push dword [0x50bf88]
push 0xf
call ebx
mov dword [ebp - 0xec], eax
push 0x5c
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00492970
add esp, 0xc
lea eax, [ebp - 0x6c]
push dword [0x4eab44]
push 0x20
push eax
call fcn.0049c61a
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 [0x50bf8c], 0
mov dword [ebp - 0xec], 0xf
je 0x4668d6
push 0x64
push dword [0x50bf88]
push 0xf
call ebx
mov dword [ebp - 0xec], eax
push 0x5c
lea eax, [ebp - 0xe8]
push 0
push eax
call fcn.00492970
add esp, 0xc
lea eax, [ebp - 0xcc]
push dword [0x4eab48]
push 0x20
push eax
call fcn.0049c61a
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 [0x50bf8c], 0
mov dword [ebp - 0xec], 0xa
je 0x46695a
push 0x64
push dword [0x50bf88]
push 0xa
call ebx
mov dword [ebp - 0xec], eax
push 0x5c
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00492970
add esp, 0xc
lea eax, [ebp - 0x6c]
push dword [0x4eab4c]
push 0x20
push eax
call fcn.0049c61a
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 [0x50bf8c], 0
mov eax, dword [0x50c488]
mov esi, dword [0x50c48c]
je 0x466a16
push 0x64
push dword [0x50bf88]
push eax
call ebx
cmp byte [0x50bf8c], 0
mov dword [ebp - 0xf0], eax
je 0x466a16
push 0x64
push dword [0x50bf88]
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 [0x50bf88]
mov esi, dword [edi + 0x9c]
cmp eax, 0x7d
jae 0x466a56
mov eax, 0xa
jmp 0x466a6e
cmp eax, 0x96
jae 0x466a64
mov eax, 0xb
jmp 0x466a6e
cmp eax, 0xc8
sbb eax, eax
add eax, 0xd
cmp dword [edi + 0x48], eax
je 0x466aa7
mov ecx, dword [edi + 0x44]
mov dword [edi + 0x48], eax
test ecx, ecx
je 0x466a83
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 0x466aa7
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 0x466ade
call fcn.004901ec
mov dword [esi + 0x14], eax
test eax, eax
je 0x466b12
push esi
push dword [ebp - 0xf0]
push eax
call fcn.004902ee
push dword [esi + 0x14]
call fcn.00490251
push eax
push 0xfffffffffffffffc
push dword [ebp - 0xec]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x466b12
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 0x466b79
call fcn.004901ec
mov dword [esi + 0x14], eax
test eax, eax
je 0x466bad
push esi
push dword [ebp - 0xf8]
push eax
call fcn.004902ee
push dword [esi + 0x14]
call fcn.00490251
push eax
push 0xfffffffffffffffc
push dword [ebp - 0xec]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x466bad
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 [0x50bf8c], 0
mov edx, dword [0x50c47c]
mov eax, dword [0x50c480]
mov ecx, dword [0x50c478]
mov esi, dword [0x50c484]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xec], eax
je 0x466d30
push 0x64
push dword [0x50bf88]
push ecx
call ebx
mov cl, byte [0x50bf8c]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xec]
test cl, cl
je 0x466cdd
push 0x64
push dword [0x50bf88]
push eax
call ebx
mov cl, byte [0x50bf8c]
mov dword [ebp - 0xec], eax
test cl, cl
je 0x466d01
push 0x64
push dword [0x50bf88]
push dword [ebp - 0xf8]
call ebx
mov cl, byte [0x50bf8c]
mov edx, eax
jmp 0x466d07
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xf8], edx
test cl, cl
je 0x466d24
push 0x64
push dword [0x50bf88]
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 [0x50bf8c], 0
mov eax, dword [0x50c494]
mov ecx, dword [0x50c490]
mov edi, dword [0x50c498]
mov esi, dword [0x50c49c]
mov dword [ebp - 0xec], eax
je 0x466ddc
push 0x64
push dword [0x50bf88]
push ecx
call ebx
mov cl, byte [0x50bf8c]
mov dword [ebp - 0xf4], eax
test cl, cl
je 0x466db3
push 0x64
push dword [0x50bf88]
push edi
call ebx
mov cl, byte [0x50bf8c]
mov edi, eax
test cl, cl
je 0x466db3
push 0x64
push dword [0x50bf88]
push dword [ebp - 0xec]
call ebx
mov cl, byte [0x50bf8c]
jmp 0x466db9
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xec], eax
test cl, cl
je 0x466dd6
push 0x64
push dword [0x50bf88]
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 [0x50bf8c], 0
mov eax, dword [0x50c4a4]
mov ecx, dword [0x50c4a0]
mov edi, dword [0x50c4a8]
mov esi, dword [0x50c4ac]
mov dword [ebp - 0xec], eax
je 0x466e8d
push 0x64
push dword [0x50bf88]
push ecx
call ebx
mov cl, byte [0x50bf8c]
mov dword [ebp - 0xf4], eax
test cl, cl
je 0x466e64
push 0x64
push dword [0x50bf88]
push edi
call ebx
mov cl, byte [0x50bf8c]
mov edi, eax
test cl, cl
je 0x466e64
push 0x64
push dword [0x50bf88]
push dword [ebp - 0xec]
call ebx
mov cl, byte [0x50bf8c]
jmp 0x466e6a
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xec], eax
test cl, cl
je 0x466e87
push 0x64
push dword [0x50bf88]
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 [0x50bf8c], 0
mov eax, dword [0x50c4b4]
mov ecx, dword [0x50c4b0]
mov edi, dword [0x50c4b8]
mov esi, dword [0x50c4bc]
mov dword [ebp - 0xec], eax
je 0x466f3e
push 0x64
push dword [0x50bf88]
push ecx
call ebx
mov cl, byte [0x50bf8c]
mov dword [ebp - 0xf4], eax
test cl, cl
je 0x466f15
push 0x64
push dword [0x50bf88]
push edi
call ebx
mov cl, byte [0x50bf8c]
mov edi, eax
test cl, cl
je 0x466f15
push 0x64
push dword [0x50bf88]
push dword [ebp - 0xec]
call ebx
mov cl, byte [0x50bf8c]
jmp 0x466f1b
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xec], eax
test cl, cl
je 0x466f38
push 0x64
push dword [0x50bf88]
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 [0x50bf8c], 0
movups xmm0, xmmword [0x50c4c0]
movups xmmword [ebp - 0x108], xmm0
je 0x466fe9
push 0x64
push dword [0x50bf88]
push dword [0x50c4c0]
call ebx
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x108], eax
mov al, byte [0x50bf8c]
test al, al
je 0x466fa4
push 0x64
push dword [0x50bf88]
push ecx
call ebx
mov ecx, eax
mov al, byte [0x50bf8c]
mov dword [ebp - 0x100], ecx
mov ecx, dword [ebp - 0x104]
test al, al
je 0x466fc6
push 0x64
push dword [0x50bf88]
push ecx
call ebx
mov ecx, eax
mov al, byte [0x50bf8c]
mov dword [ebp - 0x104], ecx
mov ecx, dword [ebp - 0xfc]
test al, al
je 0x466fe3
push 0x64
push dword [0x50bf88]
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.004477f0
movups xmm0, xmmword [0x50c4d0]
add esp, 4
cmp byte [0x50bf8c], 0
movups xmmword [ebp - 0x108], xmm0
je 0x467097
push 0x64
push dword [0x50bf88]
push dword [0x50c4d0]
call ebx
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x108], eax
mov al, byte [0x50bf8c]
test al, al
je 0x467052
push 0x64
push dword [0x50bf88]
push ecx
call ebx
mov ecx, eax
mov al, byte [0x50bf8c]
mov dword [ebp - 0x100], ecx
mov ecx, dword [ebp - 0x104]
test al, al
je 0x467074
push 0x64
push dword [0x50bf88]
push ecx
call ebx
mov ecx, eax
mov al, byte [0x50bf8c]
mov dword [ebp - 0x104], ecx
mov ecx, dword [ebp - 0xfc]
test al, al
je 0x467091
push 0x64
push dword [0x50bf88]
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.004477f0
xor edx, edx
add esp, 4
cmp byte [0x50f941], dl
je 0x4670cb
cmp byte [0x50f940], dl
setne dl
add edx, 0x3f2
jmp 0x4670da
cmp byte [0x50f940], dl
setne dl
add edx, 0x3e8
mov ecx, dword [ebp - 0x10c]
push 0
call fcn.00447bf0
mov al, byte [0x50f941]
add esp, 4
test al, al
jne 0x46710d
mov ecx, dword [ebp - 0xf0]
mov edx, 0x3ea
push 0
call fcn.00447bf0
mov al, byte [0x50f941]
add esp, 4
test al, al
mov ecx, 0x3f4
mov edx, 0x3eb
cmovne edx, ecx
mov ecx, edi
push 0
call fcn.00447bf0
add esp, 4
cmp byte [0x50f93b], 0
jne 0x46713a
cmp byte [0x50f941], 0
je 0x467144
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.00490396
mov esp, ebp
pop ebp
ret 0x10