Function at 0x5af516
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x4cc], 0
je 0x5afdd1
mov ecx, dword [edi + 0xe0]
push 0
mov byte [edi + 0x4cc], 0
call fcn.005df44b
mov esi, dword [edi + 0xe0]
lea ebx, [esi + 0x40]
cmp dword [ebx + 0x10], 0
jne 0x5af56c
mov ecx, edi
call fcn.005b4c7a
test al, al
jne 0x5af56c
push dword [esi + 0x54]
mov ecx, esi
call fcn.005e7abc
jmp 0x5afdd1
push ebx
mov ecx, edi
call fcn.005ac5ae
mov byte [esp + 0x40], al
mov ecx, edi
push dword [esp + 0x40]
lea eax, [esp + 0x2c]
push eax
call fcn.005ac4b0
push 0x16
call fcn.005fc053
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x44]
push eax
push dword [edi + 4]
call esi
lea eax, [esp + 0x68]
push eax
lea ecx, [edi + 0x4f0]
call fcn.005ffbbe
movzx ebx, byte [0x75f29a]
lea eax, [esp + 0x70]
neg ebx
push eax
push dword [edi + 0x320]
sbb ebx, ebx
and ebx, dword [esp + 0x74]
mov dword [esp + 0x44], ebx
call esi
cmp byte [0x75f29b], 0
movsx ebp, word [edi + 0x1a0]
mov dword [esp + 0x30], ebp
jne 0x5af60b
lea eax, [esp + 0x58]
push eax
push dword [edi + 0x320]
call esi
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x64]
lea ebp, [ecx - 5]
add ebp, eax
mov dword [esp + 0x30], ebp
jmp 0x5af60f
mov ecx, dword [esp + 0x50]
cmp byte [esp + 0x29], 0
jne 0x5af61c
mov ebp, ecx
mov dword [esp + 0x30], ebp
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
lea eax, [esp + 0x48]
mov ecx, edi
push eax
push ebp
lea eax, [esp + 0x20]
push eax
call fcn.005aed3c
movzx esi, byte [esp + 0x2b]
movsx eax, word [edi + 0x1b4]
neg esi
mov dword [esp + 0x1c], eax
sbb esi, esi
mov dword [esp + 0x24], eax
and esi, ebx
cmp byte [0x75f29f], 0
mov dword [esp + 0x20], esi
je 0x5af664
mov ebp, dword [esp + 0x50]
dec ebp
mov ecx, edi
sub ebp, esi
call fcn.005aaf09
test al, al
je 0x5af8ef
mov dword [esp + 0x18], 0x8a
call fcn.00597135
test al, al
je 0x5af6a3
call fcn.005978d4
test al, al
jne 0x5af6a3
call fcn.00597498
test eax, eax
jne 0x5af6a3
mov dl, byte [0x791b6c]
jmp 0x5af79f
push 1
call fcn.0056580e
mov ebx, eax
call fcn.005b4c11
test al, al
je 0x5af744
mov ecx, dword [0x79288c]
test ecx, ecx
je 0x5af6f1
call fcn.005ac7c1
push 0xfffffffffffffffa
pop ecx
sub ecx, dword [0x7928e0]
sub ecx, eax
add ebp, ecx
mov ecx, dword [0x79288c]
call fcn.005ac7c1
mov ebx, dword [0x7928e0]
add ebx, 6
add ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x5af721
mov eax, dword [ebx]
mov ecx, ebx
mov esi, dword [0x7928e0]
call dword [eax + 0x44]
push 0xfffffffffffffffa
pop ecx
sub ecx, esi
mov esi, dword [0x7928e0]
sub ecx, eax
mov eax, dword [ebx]
add ebp, ecx
mov ecx, ebx
call dword [eax + 0x44]
add esi, 6
add eax, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x6a5
push dword [edi + 4]
call ebx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dl, byte [0x791b6c]
jmp 0x5af7a5
cmp byte [0x75f2a0], 0
mov dl, byte [0x791b6c]
jne 0x5af75b
test dl, dl
je 0x5af884
mov eax, dword [edi + 0x1b8]
test eax, eax
je 0x5af791
cmp eax, 5
je 0x5af776
cmp eax, 9
je 0x5af791
cmp eax, 0x17c
jne 0x5af79f
mov ecx, dword [0x7928e0]
mov eax, 0xffffff00
sub eax, ecx
add ebp, eax
lea eax, [ecx + 0x100]
mov dword [esp + 0x18], eax
jmp 0x5af79f
sub ebp, 0xa9
mov dword [esp + 0x18], 0xaa
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x75f2a0], 0
jne 0x5af7b6
test dl, dl
je 0x5af88a
cmp byte [0x791ba2], 0
je 0x5af8ab
test dl, dl
je 0x5af8ab
call fcn.005b4c11
test al, al
je 0x5af8ab
lea eax, [esp + 0x58]
mov ecx, edi
push eax
push 0x6a5
call fcn.005844d7
mov eax, dword [esp + 0x60]
xor ebx, ebx
sub eax, dword [esp + 0x58]
push 1
mov dword [esp + 0x38], eax
call fcn.0056580e
test eax, eax
je 0x5af81f
mov ecx, dword [0x79197c]
mov edx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, eax
call dword [edx + 0x48]
mov ebx, eax
mov eax, dword [esp + 0x20]
cmp ebx, eax
jl 0x5af81f
mov ebx, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 0x3b8]
add eax, ebx
cdq
add ecx, ecx
sub eax, edx
mov edx, eax
xor eax, eax
sar edx, 1
sub edx, ecx
mov ecx, dword [edi + 0x3d4]
sub edx, ecx
cmp byte [0x791ba3], al
je 0x5af84b
push 0x19
pop eax
mov ebx, dword [esp + 0x14]
inc eax
push str.lrec_syslink
push 0x40
push dword [edi + 0x3d8]
add eax, ebp
push ecx
add eax, esi
push eax
push edx
push 0
push dword [edi + 0x3c8]
push ebx
call fcn.005fc122
push 0
push 0
push dword [edi + 0x3c8]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x5af8bd
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x6a5
push dword [edi + 4]
call ebx
mov ebx, dword [esp + 0x14]
push 0
push eax
push ebx
call fcn.005fc097
push 0
push dword [edi + 0x3c8]
jmp 0x5af904
mov ebx, dword [esp + 0x14]
push 0
push dword [edi + 0x3c8]
push ebx
call fcn.005fc097
push 0x6a5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
movsx ecx, word [edi + 0x1b4]
push str.plus_bg
push 0x40
push dword [esp + 0x20]
push ecx
lea ecx, [esi + ebp]
push ecx
push 0
push 0
push eax
push ebx
call fcn.005fc122
jmp 0x5af90a
push 0x6a5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [esp + 0x14]
push 0
push eax
push ebx
call fcn.005fc097
mov ecx, edi
call fcn.005aaf09
test al, al
je 0x5af941
push esi
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x28]
push ebp
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x54]
mov ecx, edi
push eax
push esi
lea eax, [esp + 0x2c]
push eax
call fcn.005b1bf6
add dword [esp + 0x1c], 3
mov ebx, dword [esp + 0x14]
jmp 0x5af94a
and dword [esp + 0x1c], 0
mov esi, dword [esp + 0x3c]
mov ecx, edi
call fcn.005aaf09
test al, al
je 0x5af96e
push 0x657
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
movzx ebp, cl
neg ebp
mov dword [esp + 0x24], eax
sbb ebp, ebp
and ebp, esi
mov esi, dword [esp + 0x30]
test ch, ch
jne 0x5af98f
mov esi, dword [esp + 0x50]
and dword [esp + 0x18], 0
mov ecx, edi
call fcn.005ac5d7
cmp eax, 4
mov eax, dword [edi + 0x1f0]
sete byte [esp + 0x13]
cmp eax, dword [edi + 0x1f4]
jne 0x5afa04
mov ecx, dword [edi + 0x18c]
test ecx, ecx
je 0x5af9d4
mov eax, dword [esp + 0x24]
sub esi, ebp
sub eax, dword [esp + 0x1c]
push esi
push eax
push ebp
mov ebp, dword [esp + 0x28]
push ebp
call fcn.00663270
jmp 0x5af9d8
mov ebp, dword [esp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x394]
call esi
cmp byte [0x791ba2], 0
je 0x5afc3e
push 0
push dword [edi + 0x3c4]
call esi
jmp 0x5afc3e
mov eax, dword [esp + 0x24]
sub esi, ebp
sub eax, dword [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x58], esi
call fcn.005b35f7
push 0
test al, al
je 0x5afbd6
call fcn.0056580e
mov ecx, eax
mov dword [esp + 0x14], eax
mov edx, dword [eax]
call dword [edx + 0x44]
and dword [esp + 0x20], 0
cmp byte [esp + 0x13], 0
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], esi
je 0x5afa93
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x48]
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, esi
mov dword [esp + 0x38], ecx
cmp ecx, esi
jg 0x5afa7a
mov dword [esp + 0x38], esi
mov eax, dword [edi + 0x3bc]
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
push 0x710
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
mov eax, ebp
sub eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
push str.ad_tag_bar
push 0x254
push dword [esp + 0x20]
mov edx, dword [eax]
call dword [edx + 0x48]
push eax
push dword [esp + 0x30]
push dword [esp + 0x4c]
push 0
push esi
push ebx
call fcn.005fc122
mov esi, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [edi + 0x3a8]
mov ecx, dword [edi + 0x3a4]
mov dword [esp + 0x24], eax
add ecx, ecx
mov eax, dword [esp + 0x14]
sub esi, ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x48]
add eax, dword [esp + 0x1c]
cmp esi, eax
jle 0x5afb53
cmp byte [esp + 0x13], 0
jne 0x5afb53
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x24]
push str.close_button
push 0x254
push dword [edi + 0x3a8]
cdq
push dword [edi + 0x3a4]
sub eax, edx
sar eax, 1
add eax, ebp
push eax
push esi
push 0
push dword [edi + 0x394]
push ebx
call fcn.005fc122
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, eax
push 5
push dword [edi + 0x394]
jmp 0x5afb6b
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x394]
call esi
push 0
push dword [edi + 0x3c4]
call esi
cmp byte [0x791ba2], 0
je 0x5afbe4
mov ecx, dword [esp + 0x14]
mov esi, dword [edi + 0x3b8]
push str.ft_link
push 0x254
push dword [edi + 0x3d0]
mov eax, dword [ecx]
push dword [edi + 0x3cc]
push dword [esp + 0x30]
call dword [eax + 0x48]
mov ecx, dword [esp + 0x4c]
sub ecx, dword [edi + 0x418]
sub ecx, dword [edi + 0x3cc]
sub ecx, esi
add eax, ecx
push eax
push 0
push dword [edi + 0x3c4]
push ebx
call fcn.005fc122
push 0
push 0
push dword [edi + 0x3c4]
mov ebx, eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x5afbee
push dword [edi + 0x394]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 0
push dword [edi + 0x3c4]
call esi
mov esi, dword [esp + 0x54]
mov eax, esi
mov ecx, dword [esp + 0x18]
sub eax, ecx
push str.active_pane
push 0x214
push eax
push dword [esp + 0x40]
lea eax, [ecx + ebp]
mov ebp, dword [esp + 0x2c]
push eax
push ebp
push 0
push dword [edi + 0x1f0]
push ebx
call fcn.005fc122
shl esi, 0x10
mov ebx, eax
or esi, dword [esp + 0x34]
push esi
push 0
push 5
push dword [edi + 0x1f0]
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esp + 0x13], 0
mov esi, dword [esp + 0x18]
je 0x5afc57
push esi
push 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
cmp byte [esp + 0x28], 0
je 0x5afc7c
push dword [esp + 0x3c]
lea eax, [esp + 0x48]
mov ecx, edi
push dword [esp + 0x34]
push ebp
push eax
lea eax, [esp + 0x24]
push eax
call fcn.005b15fa
mov ebx, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x5afc93
neg esi
lea eax, [esp + 0x44]
push esi
push 0
push eax
call dword [sym.imp.USER32.dll_InflateRect]
cmp byte [esp + 0x29], 0
je 0x5afcb4
push dword [esp + 0x30]
lea eax, [esp + 0x48]
mov ecx, edi
push ebp
push eax
lea eax, [esp + 0x20]
push eax
call fcn.005b1498
mov ebx, dword [esp + 0x14]
cmp byte [edi + 0x260], 0
je 0x5afce0
mov esi, dword [edi + 0x1f0]
mov ecx, edi
call fcn.005ad3d2
cmp esi, eax
jne 0x5afce0
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [edi + 0x260], 0
mov eax, dword [esp + 0x28]
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov al, byte [esp + 0x34]
mov byte [ecx + 4], al
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.005b2ff7
push ebx
call fcn.005fc26e
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x6a5
push dword [edi + 4]
call ebx
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0xf
push eax
call esi
push 0x710
push dword [edi + 4]
call ebx
xor ebx, ebx
push ebx
push ebx
push 0xf
push eax
call esi
cmp byte [esp + 0x40], bl
jne 0x5afdca
cmp dword [edi + 0xf0], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 2
pop ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
jge 0x5afd94
mov eax, dword [edi + 0x22c]
push ecx
push 0xffffffffffffffff
push 0x100c
push dword [eax + 0xc]
call ebx
inc eax
mov dword [edi + 0xf0], eax
jns 0x5afd94
mov eax, dword [edi + 0x22c]
push 0
push 0
push 0x1042
push dword [eax + 0xc]
call ebx
mov dword [edi + 0xf0], eax
push dword [edi + 0xf0]
mov eax, dword [edi + 0x22c]
push 0
push 0x1043
push dword [eax + 0xc]
call ebx
lea eax, [esp + 0x80]
push eax
push dword [edi + 0xf0]
mov eax, dword [edi + 0x22c]
push 0x102b
push dword [eax + 0xc]
call ebx
mov ecx, edi
call fcn.005a8e0a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret