Function at 0x445172
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
push edi
lea edi, [esp + 0x18]
lea esi, [esp + 0x14]
mov eax, 0x491510
call fcn.0043febe
test al, al
jne 0x44519e
xor eax, eax
jmp 0x445794
mov edi, dword [esp + 0x14]
mov eax, dword [0x491570]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [0x491584]
mov eax, dword [eax + esi*4]
mov ebx, dword [eax]
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
mov al, byte [ebx + 0x88]
mov byte [esp + 0x23], al
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [ebp + 8], eax
jge 0x4451dc
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
and eax, 0x100
mov dword [esp + 0x18], eax
je 0x4451fb
mov ecx, esi
mov eax, edi
call fcn.00440a4c
mov dword [esp + 0x10], 1
test dword [ebp + 8], 0x800
je 0x44521f
push 0x13
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x10], 1
movzx eax, byte [esp + 0x23]
cmp eax, 0x14
jg 0x445559
je 0x44547e
cmp eax, 9
je 0x445434
cmp eax, 0xb
je 0x4453e9
cmp eax, 0xc
je 0x445197
cmp eax, 0xd
jle 0x445687
cmp eax, 0xf
jle 0x44531a
cmp eax, 0x11
jne 0x445687
push 0xfffffffffffffff0
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x5c], eax
mov al, byte [ebp + 8]
and al, 1
movsx eax, al
neg eax
sbb eax, eax
mov ecx, 0x1000
and eax, ecx
add eax, ecx
test dword [ebp + 8], 0x200
mov dword [esp + 0x58], 8
mov dword [esp + 0x64], 0xf010
mov dword [esp + 0x60], eax
je 0x4452b4
or eax, 0x10
mov dword [esp + 0x60], eax
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x58]
push eax
push 0
push 0x113f
push dword [ebx + 0x30]
call esi
test dword [ebp + 8], 0x400
je 0x4452e3
push dword [ebx + 0xc]
push 2
push 0x1102
push dword [ebx + 0x30]
call esi
cmp dword [esp + 0x18], 0
je 0x445587
mov edi, dword [ebx + 0x30]
mov ecx, 0x491510
call fcn.0043fcf9
mov ecx, eax
mov eax, dword [esp + 0x14]
call fcn.00440a4c
push dword [ebx + 0xc]
push 9
push 0x110b
push dword [ebx + 0x30]
call esi
jmp 0x445587
mov edi, dword [sym.imp.USER32.dll_GetMenuItemInfoW]
and dword [esp + 0x10], 0
lea eax, [esp + 0x28]
push eax
push 0
push esi
push dword [ebx + 8]
mov dword [esp + 0x38], 0x30
mov dword [esp + 0x3c], 1
call edi
test eax, eax
je 0x445197
mov al, byte [ebp + 8]
test al, 0x20
jne 0x445197
test al, al
jns 0x445361
mov dword [esp + 0x10], 3
test al, 1
je 0x44536a
or dword [esp + 0x10], 8
cmp dword [esp + 0x18], 0
je 0x445379
or dword [esp + 0x10], 0x80
test byte [esp + 0x34], 8
je 0x445389
test al, 4
jne 0x445389
or dword [esp + 0x10], 8
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
push 0
push esi
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
test dword [ebp + 8], 0x200
je 0x4453b0
push 0
push esi
jmp 0x4453cf
lea eax, [esp + 0x28]
push eax
push 0
push esi
push dword [ebx + 8]
call edi
test eax, eax
je 0x4453d8
test dword [esp + 0x34], 0x1000
je 0x4453d8
push 0
push 0xffffffffffffffff
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov eax, dword [esp + 0x24]
push dword [eax]
call dword [sym.imp.USER32.dll_DrawMenuBar]
jmp 0x445587
test byte [ebp + 8], 0x10
je 0x445687
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x18c], 0
movzx eax, byte [ebx + 0x8b]
je 0x445413
mov edx, dword [ecx + 0x188]
mov dword [ecx + 0x184], edx
push eax
mov edi, ecx
mov esi, 0x491510
call fcn.00446802
movzx eax, byte [ebx + 0x8b]
mov ecx, edi
mov dword [ecx + 0x188], eax
jmp 0x445587
mov eax, dword [ebp + 8]
and eax, 7
sub eax, 0
je 0x44545e
dec eax
je 0x445450
push 0
push 0
push 0x467
jmp 0x4455ab
push 0xffff0000
push 0xffffffffffffffff
push 0x465
jmp 0x445467
push 0
push 0
push 0x466
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x445687
jmp 0x445587
mov ebx, dword [ebx + 0x30]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and dword [esp + 0x10], 0
lea eax, [esp + 0x80]
push eax
push 0xffffffffffffffff
push 0x1053
push ebx
mov dword [esp + 0x90], 1
mov dword [esp + 0x98], esi
call edi
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x445197
and dword [esp + 0x30], 0
push 0xffffffffffffffec
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 8
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, 0x2000
test al, 4
je 0x445514
test byte [ebp + 8], 5
je 0x445514
mov eax, dword [ebp + 8]
dec eax
neg eax
sbb eax, eax
and eax, 0xfffff000
add eax, esi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
push 0
push 0x104c
push ebx
mov dword [esp + 0x48], 0xf000
call edi
mov dword [esp + 0x10], eax
test dword [ebp + 8], 0x2100
je 0x445790
cmp dword [esp + 0x18], 0
je 0x44552d
or dword [esp + 0x34], 0xffffffff
test dword [ebp + 8], esi
je 0x445537
and dword [esp + 0x34], 0
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x40], 3
push 0x102b
push ebx
call edi
mov dword [esp + 0x10], eax
jmp 0x445790
sub eax, 0x16
je 0x4455ed
dec eax
dec eax
je 0x4455b7
dec eax
je 0x445594
dec eax
jne 0x445687
mov eax, dword [ebp + 8]
and eax, 7
je 0x445687
and eax, 3
push eax
mov eax, esi
call fcn.00443932
mov dword [esp + 0x10], 1
jmp 0x445687
mov eax, dword [ebp + 8]
and eax, 7
je 0x445687
push 0
and eax, 3
push eax
push 0xf1
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x445587
test dword [ebp + 8], 0x200
je 0x445687
mov eax, dword [esp + 0x24]
push 0
push esi
push 0x401
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebx]
jne 0x445587
mov ecx, esi
mov eax, edi
call fcn.00440a4c
jmp 0x445587
mov ecx, dword [0x491594]
push 3
pop esi
cmp ecx, esi
jl 0x445687
mov eax, dword [0x491584]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0
je 0x445629
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [esp + 0x24]
cmp edx, dword [edi + 4]
jne 0x445629
cmp byte [eax + 0x88], 3
jne 0x445629
mov eax, dword [eax]
cmp eax, dword [ebx + 0x30]
je 0x445630
inc esi
cmp esi, ecx
jle 0x4455fe
jmp 0x445687
mov al, byte [ebx + 0x8a]
test byte [ebp + 8], al
jne 0x445687
test al, 0x10
je 0x445687
mov eax, dword [0x491584]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
movsx ecx, word [eax + 0x86]
push 0
push ecx
movsx ecx, word [eax + 0x84]
push ecx
movsx ecx, word [eax + 0x82]
push ecx
movsx ecx, word [eax + 0x80]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push dword [ebx + 0x30]
push 0x469
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 8]
and eax, 0x10f8
mov dword [esp + 0x14], eax
jle 0x445790
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
test byte [esp + 0x14], 0x80
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], eax
mov esi, 0xc0
je 0x4456c6
push eax
push dword [esp + 0x20]
mov dword [esp + 0x20], esi
call edi
mov eax, esi
test byte [esp + 0x14], 0x40
je 0x4456db
push 1
push dword [esp + 0x20]
mov dword [esp + 0x20], esi
call edi
mov eax, esi
mov edx, dword [esp + 0x14]
and edx, 0x20
je 0x4456e7
add eax, 0x30
mov ecx, dword [esp + 0x14]
and ecx, 0x10
mov dword [esp + 0x18], ecx
je 0x4456f7
add eax, 0x30
test byte [esp + 0x14], 8
mov esi, 0x1008
je 0x445705
add eax, esi
test dword [esp + 0x14], 0x1000
je 0x445711
add eax, esi
not al
and al, byte [ebx + 0x8a]
or al, byte [esp + 0x14]
mov byte [ebx + 0x8a], al
mov al, byte [ebx + 0x8b]
cmp al, 0xff
je 0x445743
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x184]
movzx eax, al
cmp eax, ecx
je 0x445743
cmp ecx, 0xffffffff
jne 0x445790
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test edx, edx
je 0x445755
push 0
push dword [esp + 0x20]
call esi
cmp dword [esp + 0x18], 0
je 0x44577c
push 4
push dword [esp + 0x20]
call esi
cmp byte [esp + 0x23], 0x1a
jne 0x44577c
test byte [ebx + 0x8a], 0x40
je 0x44577c
push 1
push dword [esp + 0x20]
call edi
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x39], 0
jne 0x445790
push 1
push ebx
mov esi, eax
call fcn.0043ff2c
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4