Function at 0x50280b
Capabilities:
Get graphical window text
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, 0x589e40
mov edi, 0x55a4f0
mov ebx, 0x589e24
push dword [ebp + 8]
call fcn.00516145
mov dword [0x589e34], eax
cmp dword [0x589e34], 0
jne 0x502843
push dword [ebp + 8]
call fcn.005025d4
jmp 0x5032cf
mov eax, dword [0x589e34]
mov edx, dword [eax + 0x758]
mov dword [0x589e50], edx
cmp dword [0x589e50], 0
je 0x50286a
call sub.USER32.dll_GetFocus
cmp eax, dword [0x589e50]
je 0x502876
push 0
call fcn.0041c2be
jmp 0x5032cf
push 0
push 0
push 0xb0
push dword [0x589e50]
call sub.USER32.dll_SendMessageA
mov dword [0x589e48], eax
movzx ecx, word [0x589e48]
mov dword [0x589e20], ecx
mov dword [0x589e1c], ecx
cmp dword [0x589e1c], 0
jge 0x5028b2
xor eax, eax
mov dword [0x589e1c], eax
mov edx, dword [0x589e1c]
cmp edx, dword [0x589e20]
jle 0x5028ca
mov eax, dword [0x589e1c]
mov dword [0x589e20], eax
push 0
push 0
push 0xe
push dword [0x589e50]
call sub.USER32.dll_SendMessageA
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x5028eb
cmp dword [0x55a4ec], 0
je 0x5028f8
push dword [ebp + 8]
call fcn.005025d4
jmp 0x5032cf
push 0x57c887
push 0x3e6
push 0xd
push dword [0x589e50]
call sub.USER32.dll_SendMessageA
mov dword [ebx], eax
cmp dword [ebx], 0
jg 0x502922
push 0
call fcn.0041c2be
jmp 0x5032cf
mov edx, dword [ebx]
mov byte [edx + 0x57c887], 0
push 0x57c887
call fcn.00502539
test eax, eax
je 0x502985
push 0x55a587
push 0
push 0xc
push dword [0x589e50]
call sub.USER32.dll_SendMessageA
push dword [0x589e50]
call sub.USER32.dll_UpdateWindow
push dword [ebp + 8]
call fcn.005025d4
jmp 0x5032cf
mov ecx, dword [0x589e20]
mov al, byte [ecx + 0x57c887]
test al, al
je 0x50298f
mov edx, dword [0x589e20]
cmp al, 0x20
je 0x50298f
inc dword [0x589e20]
mov ecx, dword [0x589e20]
cmp ecx, dword [ebx]
jl 0x502965
mov eax, dword [0x589e20]
mov byte [eax + 0x57c887], 0
mov edx, dword [0x589e1c]
cmp byte [edx + 0x57c887], 0x20
jne 0x5029e8
dec dword [0x589e1c]
cmp dword [0x589e1c], 0
jl 0x5029c8
mov ecx, dword [0x589e1c]
cmp byte [ecx + 0x57c887], 0x20
jne 0x5029e8
push 0
call fcn.0041c2be
jmp 0x5032cf
mov eax, dword [0x589e1c]
cmp byte [eax + 0x57c887], 0x20
je 0x5029f1
dec dword [0x589e1c]
cmp dword [0x589e1c], 0
jg 0x5029d4
mov edx, dword [0x589e1c]
cmp byte [edx + 0x57c887], 0x20
jne 0x502a06
inc dword [0x589e1c]
xor ecx, ecx
mov dword [0x589e30], ecx
mov eax, dword [0x589e20]
mov dword [0x589e2c], eax
jmp 0x502a6a
mov ecx, dword [0x589e2c]
mov al, byte [ecx + 0x57c887]
cmp al, 0x28
jne 0x502a30
inc dword [0x589e30]
mov ecx, dword [0x589e2c]
cmp al, 0x29
jne 0x502a40
dec dword [0x589e30]
cmp dword [0x589e30], 0
jne 0x502a64
mov ecx, dword [0x589e2c]
cmp al, 0x2c
jne 0x502a64
cmp edx, dword [0x589e20]
je 0x502a78
inc edx
mov dword [0x589e1c], edx
jmp 0x502a78
dec dword [0x589e2c]
mov edx, dword [0x589e2c]
cmp edx, dword [0x589e1c]
jge 0x502a1a
mov eax, dword [0x589e1c]
cmp eax, dword [0x589e20]
je 0x502a99
mov eax, dword [0x589e1c]
cmp byte [eax + 0x57c887], 0x3d
jne 0x502a99
inc dword [0x589e1c]
mov byte [0x589e4c], 0
mov edx, 0x57c887
add edx, dword [0x589e1c]
push edx
call fcn.004df19c
test al, al
je 0x502b13
mov ecx, dword [0x589e1c]
cmp byte [ecx + 0x57c887], 0x24
je 0x502b13
mov eax, dword [0x589e1c]
cmp byte [eax + 0x57c887], 0x25
je 0x502b13
mov edx, dword [0x589e1c]
mov cl, byte [edx + 0x57c887]
mov byte [0x589e4c], cl
inc dword [0x589e1c]
mov eax, dword [0x589e1c]
cmp byte [eax + 0x57c887], 0
je 0x502b07
mov edx, dword [0x589e1c]
cmp byte [edx + 0x57c887], 0x20
jne 0x502b13
push 0
call fcn.0041c2be
jmp 0x5032cf
mov ecx, 0x57c887
add ecx, dword [0x589e1c]
push ecx
call fcn.005395b8
pop ecx
cmp eax, 0x5a
jbe 0x502b36
push 0
call fcn.0041c2be
jmp 0x5032cf
cmp byte [edi], 0
je 0x502b60
push edi
call fcn.005395b8
pop ecx
push eax
push edi
mov eax, 0x57c887
add eax, dword [0x589e1c]
push eax
call fcn.00539814
add esp, 0xc
test eax, eax
je 0x502bee
cmp byte [edi], 0
je 0x502bac
push 0x55a58b
push edi
call fcn.00539874
add esp, 8
test eax, eax
je 0x502bac
push 0x55a58f
mov edx, 0x57c887
add edx, dword [0x589e1c]
push edx
call fcn.00539874
add esp, 8
test eax, eax
jne 0x502bac
push 0
mov ecx, 0x57c887
add ecx, dword [0x589e1c]
push ecx
push edi
call fcn.00513930
test eax, eax
jne 0x502bee
mov eax, dword [0x589e20]
sub eax, dword [0x589e1c]
push eax
mov edx, 0x57c887
add edx, dword [0x589e1c]
push edx
push edi
call fcn.005397c4
add esp, 0xc
mov ecx, dword [0x589e20]
sub ecx, dword [0x589e1c]
mov byte [edi + ecx], 0
cmp byte [edi], 0
jne 0x502bee
push 0
call fcn.0041c2be
jmp 0x5032cf
mov eax, dword [0x589e1c]
mov byte [eax + 0x57c887], 0
mov edx, dword [0x589e20]
cmp edx, dword [ebx]
jge 0x502c11
mov ecx, dword [0x589e20]
mov byte [ecx + 0x57c887], 0x20
cmp byte [edi], 0x24
je 0x502c2c
cmp byte [edi], 0x25
je 0x502c2c
cmp byte [edi], 0x23
jne 0x502c8b
cmp byte [edi + 1], 0
je 0x502c2c
cmp byte [edi + 1], 0x20
jne 0x502c8b
push esi
push edi
mov esi, 0x57c4a0
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0
push 0
push 0
push 0
push 0x57c4a0
push dword [ebp + 8]
call fcn.00467778
test eax, eax
je 0x502c7f
cmp byte [0x57c4a0], 0
je 0x502c7f
mov dword [esi], 0x57c4a0
jmp 0x5031cf
push 0
call fcn.0041c2be
jmp 0x5032cf
cmp byte [edi], 0x23
jne 0x502d70
cmp byte [edi + 1], 0
je 0x502d70
mov eax, dword [0x55a558]
mov dword [0x589e64], eax
mov edx, dword [0x589e64]
mov dword [0x589e60], edx
push dword [0x589e60]
push 0x55a593
push 0x589e54
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x54c538
push 0x3e7
push 0x57f8f2
push 0x55a5a4
push 0x589e54
push str.chanfolder
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x57c4a0
push 1
push 0x57f8f2
call fcn.00423afd
push 0x57c4a0
call fcn.004ff072
cmp byte [0x57c4a0], 0
je 0x502d5d
push edi
call fcn.005395b8
pop ecx
push eax
push 0x57c4a0
push edi
call fcn.00539814
add esp, 0xc
test eax, eax
jne 0x502d45
mov ecx, dword [0x589e60]
inc ecx
mov dword [0x55a558], ecx
mov dword [esi], 0x57c4a0
jmp 0x5031cf
inc dword [0x589e60]
mov eax, dword [0x589e60]
cmp eax, dword [0x55a558]
je 0x502d70
jmp 0x502cb4
xor eax, eax
mov dword [0x589e60], eax
cmp eax, dword [0x55a558]
jne 0x502cb4
mov edx, dword [0x589e34]
cmp dword [edx + 0x75c], 0
je 0x502db3
mov ecx, dword [0x589e34]
cmp byte [ecx + 0x64c], 1
je 0x5030a2
mov eax, dword [0x589e34]
cmp byte [eax + 0x64c], 9
jne 0x502db3
mov edx, dword [0x589e34]
cmp byte [edx + 0x64d], 2
je 0x5030a2
mov ecx, dword [0x589e34]
cmp byte [ecx + 0x64c], 2
jne 0x502e94
mov eax, dword [0x589e34]
cmp byte [eax + 0x64d], 2
jne 0x502e94
cmp dword [0x55a4e8], 0
je 0x502e94
mov ebx, dword [0x55a4e8]
test ebx, ebx
je 0x502e03
cmp dword [ebx + 0x1c], 1
jne 0x502dfc
xor eax, eax
mov dword [ebx + 0x1c], eax
jmp 0x502e03
mov ebx, dword [ebx + 0x34]
test ebx, ebx
jne 0x502def
test ebx, ebx
jne 0x502e10
mov edx, dword [0x55a4e8]
mov ebx, dword [edx + 0x38]
mov dword [ebx + 0x1c], 1
test ebx, ebx
je 0x502e94
push 0x55a5a8
push edi
call fcn.00539874
add esp, 8
test eax, eax
je 0x502e3b
push 0
push dword [ebx]
push edi
call fcn.00513930
test eax, eax
jne 0x502e52
push edi
call fcn.005395b8
pop ecx
push eax
push dword [ebx]
push edi
call fcn.00539814
add esp, 0xc
test eax, eax
jne 0x502e85
mov eax, dword [ebx]
push esi
mov esi, 0x57c4a0
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov dword [esi], 0x57c4a0
jmp 0x5031cf
cmp ebx, dword [0x55a4e8]
je 0x502e94
mov ebx, dword [ebx + 0x38]
test ebx, ebx
jne 0x502e1b
mov ebx, dword [0x589e34]
cmp byte [ebx + 0x64c], 2
jne 0x502f5f
cmp byte [ebx + 0x64d], 2
je 0x502f5f
cmp byte [ebx + 0x64d], 1
jne 0x502ec4
add ebx, 4
mov dword [esi], ebx
jmp 0x502ee7
push 0x20
add ebx, 4
push ebx
call fcn.00539518
add esp, 8
mov dword [esi], eax
cmp dword [esi], 0
jne 0x502ee5
mov eax, dword [0x589e34]
add eax, 4
mov dword [esi], eax
jmp 0x502ee7
inc dword [esi]
mov edx, dword [esi]
cmp byte [edx], 0
je 0x502f0e
push 0x55a5ac
push edi
call fcn.00539874
add esp, 8
test eax, eax
je 0x502f0e
push 0
push dword [esi]
push edi
call fcn.00513930
test eax, eax
jne 0x502f2c
mov ecx, dword [esi]
cmp byte [ecx], 0
je 0x502f5f
push edi
call fcn.005395b8
pop ecx
push eax
push dword [esi]
push edi
call fcn.00539814
add esp, 0xc
test eax, eax
jne 0x502f5f
mov eax, dword [esi]
push esi
mov esi, 0x57c4a0
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov dword [esi], 0x57c4a0
jmp 0x5031cf
mov eax, dword [0x589e34]
cmp byte [eax + 0x64c], 0
je 0x502f80
mov edx, dword [0x589e34]
cmp byte [edx + 0x64c], 2
jne 0x503095
mov ecx, dword [0x55a55c]
mov dword [0x589e6c], ecx
cmp dword [0x589e6c], 0
je 0x502fa4
push dword [0x589e6c]
call fcn.004c82aa
test eax, eax
jne 0x502fae
mov eax, dword [0x557224]
mov dword [0x589e6c], eax
mov edx, dword [0x589e6c]
mov dword [0x589e68], edx
jmp 0x503088
push 0x55a5b0
push edi
call fcn.00539874
add esp, 8
test eax, eax
je 0x502fe3
push 0
push dword [0x589e68]
push edi
call fcn.00513930
test eax, eax
jne 0x502ffe
push edi
call fcn.005395b8
pop ecx
push eax
push dword [0x589e68]
push edi
call fcn.00539814
add esp, 0xc
test eax, eax
jne 0x50305a
mov ebx, dword [0x589e68]
mov eax, dword [ebx + 0x2b0]
mov dword [0x55a55c], eax
push esi
mov esi, 0x57c4a0
mov edi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0x21
push 0x57c4a0
call fcn.00539518
add esp, 8
mov ebx, eax
mov dword [esi], ebx
test ebx, ebx
je 0x50304f
mov byte [ebx], 0
mov dword [esi], 0x57c4a0
jmp 0x5031cf
mov eax, dword [0x589e68]
mov eax, dword [eax + 0x2b0]
mov dword [0x589e68], eax
test eax, eax
jne 0x50307a
mov edx, dword [0x557224]
mov dword [0x589e68], edx
mov ecx, dword [0x589e68]
cmp ecx, dword [0x589e6c]
je 0x503095
cmp dword [0x589e68], 0
jne 0x502fbf
push dword [ebp + 8]
call fcn.005025d4
jmp 0x5032cf
xor eax, eax
mov dword [0x589e28], eax
cmp dword [0x55a554], 0xffffffff
jne 0x5030be
mov dword [0x589e44], 1
jmp 0x5030c6
xor edx, edx
mov dword [0x589e44], edx
push 0
push 0
push 0x18b
mov ecx, dword [0x589e34]
push dword [ecx + 0x75c]
call sub.USER32.dll_SendMessageA
mov dword [0x589e38], eax
cmp dword [0x589e38], 0xffffffff
je 0x5032ab
cmp dword [0x589e38], 0
jle 0x5032ab
xor eax, eax
mov dword [ebx], eax
jmp 0x50329d
push 0x57c4a0
push dword [ebx]
push 0x189
mov edx, dword [0x589e34]
push dword [edx + 0x75c]
call sub.USER32.dll_SendMessageA
mov dword [0x589e3c], eax
mov eax, dword [0x589e3c]
cmp eax, 0xffffffff
je 0x50329b
test eax, eax
jle 0x50329b
push 0xf
push 0x57c4a0
call fcn.004fec28
mov dword [esi], 0x57c4a0
mov al, byte [0x589e4c]
test al, al
je 0x50316a
mov edx, dword [esi]
cmp al, byte [edx]
je 0x50316a
inc dword [ebx]
jmp 0x50329d
inc dword [esi]
push dword [esi]
call fcn.004df19c
test al, al
jne 0x503168
mov ecx, dword [esi]
cmp byte [ecx], 0
je 0x50329b
cmp dword [0x589e44], 0
je 0x503287
push 0x55a5b4
push edi
call fcn.00539874
add esp, 8
test eax, eax
je 0x5031ad
push 0
push dword [esi]
push edi
call fcn.00513930
test eax, eax
jne 0x5031c8
push edi
call fcn.005395b8
pop ecx
push eax
push dword [esi]
push edi
call fcn.00539814
add esp, 0xc
test eax, eax
jne 0x50329b
mov eax, dword [ebx]
mov dword [0x55a554], eax
push dword [esi]
call fcn.005395b8
pop ecx
add eax, dword [0x589e1c]
mov dword [0x589e1c], eax
mov edx, dword [0x589e20]
cmp byte [edx + 0x57c887], 0
je 0x50320a
mov ecx, 0x57c887
add ecx, dword [0x589e20]
push ecx
push 0x57c4a0
call fcn.005394dc
add esp, 8
push dword [esi]
push 0x57c887
call fcn.005394dc
add esp, 8
push 0
push 0
push 0xb
push dword [0x589e50]
call sub.USER32.dll_SendMessageA
push 0x57c887
push 0
push 0xc
push dword [0x589e50]
call sub.USER32.dll_SendMessageA
push 0
push 1
push 0xb
push dword [0x589e50]
call sub.USER32.dll_SendMessageA
mov eax, dword [0x589e1c]
push eax
push eax
push 0xb1
push dword [0x589e50]
call sub.USER32.dll_SendMessageA
push 0
push 0
push 0xb7
push dword [0x589e50]
call sub.USER32.dll_SendMessageA
push dword [0x589e50]
call sub.USER32.dll_UpdateWindow
jmp 0x5032cf
mov edx, dword [0x55a554]
cmp edx, dword [ebx]
jne 0x50329b
mov dword [0x589e44], 1
inc dword [ebx]
mov ecx, dword [ebx]
cmp ecx, dword [0x589e38]
jl 0x503108
mov dword [0x55a554], 0xffffffff
inc dword [0x589e28]
cmp dword [0x589e28], 2
jl 0x5030a9
push 0
call fcn.0041c2be
pop edi
pop esi
pop ebx
pop ebp
ret 4