Function at 0x52a8f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x30
push ebx
mov ebx, ecx
push ebp
mov dword [esp + 0x24], ebx
call fcn.00542c90
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x52a917
xor ecx, ecx
call fcn.0041d520
pop ebp
pop ebx
add esp, 0x30
ret
push esi
push edi
mov edi, dword [ebp + 0xbbc]
mov ecx, edi
mov dword [esp + 0x24], edi
call fcn.004e2760
test eax, eax
jne 0x52a93d
xor ecx, ecx
call fcn.0041d520
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
cmp esi, dword [ebp + 0x86c]
mov dword [esp + 0x30], esi
je 0x52a959
cmp esi, dword [ebp + 0x870]
jne 0x52a92e
mov edx, dword [ebp + 0x89c]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00477a90
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x28], eax
jge 0x52a986
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [ebp + 0x89c]
mov ecx, esi
call fcn.004778f0
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x52a9f3
mov eax, dword [edi + 0x20ec]
test eax, eax
jne 0x52a9f3
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x5aaa28
push 0x3e6
push 0xd
push esi
call edi
test eax, eax
mov dword [esp + 0x18], eax
jle 0x52a92e
mov ecx, 0x5aaa28
mov byte [eax + 0x5aaa28], 0
call fcn.0052a510
test eax, eax
je 0x52aa02
push 0x583b74
push 0
push 0xc
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, ebx
call fcn.0052a590
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cmp esi, ecx
jge 0x52aa27
mov edi, edi
mov al, byte [esi + 0x5aaa28]
test al, al
je 0x52aa23
cmp al, 0x20
je 0x52aa23
inc esi
cmp esi, ecx
jl 0x52aa10
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x14]
mov byte [esi + 0x5aaa28], 0
cmp byte [eax + 0x5aaa28], 0x20
jne 0x52aa53
dec eax
mov dword [esp + 0x14], eax
js 0x52a92e
cmp byte [eax + 0x5aaa28], 0x20
je 0x52a92e
test eax, eax
jle 0x52aa69
cmp byte [eax + 0x5aaa28], 0x20
je 0x52aa65
dec eax
test eax, eax
jg 0x52aa57
mov dword [esp + 0x14], eax
cmp byte [eax + 0x5aaa28], 0x20
jne 0x52aa77
inc eax
mov dword [esp + 0x14], eax
xor edi, edi
cmp eax, esi
mov edx, esi
jg 0x52aab1
nop
mov cl, byte [edx + 0x5aaa28]
cmp cl, 0x28
jne 0x52aa8c
inc edi
cmp cl, 0x29
jne 0x52aa92
dec edi
test edi, edi
jne 0x52aa9b
cmp cl, 0x2c
je 0x52aaa2
dec edx
cmp edx, eax
jge 0x52aa80
jmp 0x52aaad
cmp edx, esi
je 0x52aaad
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
cmp eax, esi
je 0x52aabf
cmp byte [eax + 0x5aaa28], 0x3d
jne 0x52aabf
inc eax
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0xbbc]
lea ecx, [eax + 0x5aaa28]
mov byte [esp + 0x13], 0
call fcn.004ff650
test al, al
mov edx, dword [esp + 0x14]
je 0x52ab0a
mov al, byte [edx + 0x5aaa28]
cmp al, 0x24
je 0x52ab0a
cmp al, 0x25
je 0x52ab0a
inc edx
mov byte [esp + 0x13], al
mov al, byte [edx + 0x5aaa28]
test al, al
mov dword [esp + 0x14], edx
je 0x52a92e
cmp al, 0x20
je 0x52a92e
lea edi, [edx + 0x5aaa28]
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52ab15
sub eax, esi
cmp eax, 0x5a
ja 0x52a92e
mov esi, dword [esp + 0x24]
mov al, byte [esi + 0x20f0]
cmp al, 0x24
lea ebx, [esi + 0x20f0]
mov ebp, 1
je 0x52ab6d
cmp al, 0x25
je 0x52ab6d
test al, al
je 0x52ab96
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52ab50
sub eax, edx
push eax
push ebx
push edi
call fcn.00580a2f
add esp, 0xc
test eax, eax
jne 0x52ab92
jmp 0x52ac1f
test al, al
je 0x52ab96
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52ab76
sub eax, edx
push eax
push ebx
push edi
call fcn.005733c0
add esp, 0xc
test eax, eax
je 0x52ac1f
mov edx, dword [esp + 0x14]
cmp byte [ebx], 0
je 0x52abee
push 0x5846fc
push ebx
call fcn.00571fd0
add esp, 8
test eax, eax
je 0x52abea
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x5aaa28]
push 0x5846fc
push ecx
call fcn.00571fd0
add esp, 8
test eax, eax
jne 0x52abea
mov edx, dword [esp + 0x14]
push ebp
push eax
lea edx, [edx + 0x5aaa28]
mov ecx, ebx
call fcn.00542310
test eax, eax
je 0x52abea
mov al, byte [ebx]
cmp al, 0x24
je 0x52abea
cmp al, 0x25
jne 0x52ac1f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
sub eax, edx
push eax
lea ecx, [edx + 0x5aaa28]
push ecx
push ebx
call fcn.00570120
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x20]
mov byte [edx + esi + 0x20f0], 0
mov al, byte [ebx]
add esp, 0xc
test al, al
je 0x52a92e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [eax + 0x5aaa28], 0
mov eax, dword [esp + 0x28]
cmp eax, ecx
jge 0x52ac3d
mov byte [eax + 0x5aaa28], 0x20
mov al, byte [ebx]
cmp al, 0x24
je 0x52b2a8
cmp al, 0x25
je 0x52b2a8
mov edx, esi
mov ecx, ebx
call fcn.004ff610
test al, al
je 0x52ac72
mov al, byte [esi + 0x20f1]
test al, al
je 0x52b2a8
cmp al, 0x20
je 0x52b2a8
mov edx, esi
mov ecx, ebx
call fcn.004ff610
test al, al
je 0x52ae4e
mov al, byte [esi + 0x20f1]
test al, al
je 0x52ae4e
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
xor esi, esi
push esi
lea ecx, [esp + 0x38]
push 0x583f60
push ecx
mov dword [esp + 0x2c], esi
call edi
add esp, 0xc
push str.Mirc.ini
push 0x3e7
push 0x5ac5e0
push 0x583b74
lea edx, [esp + 0x44]
mov ecx, str.chanfolder
call fcn.004b1f10
mov al, byte [0x5ac5e0]
test al, al
je 0x52ad4e
lea esp, [esp]
push 0x5aa640
mov edx, ebp
mov ecx, 0x5ac5e0
call fcn.00425f90
mov al, byte [0x5aa640]
test al, al
je 0x52ad12
mov ecx, dword [esp + 0x20]
push 0
mov edx, 0x5aa640
call fcn.004c7e10
test eax, eax
je 0x52ad4e
mov dword [esp + 0x20], eax
inc esi
push esi
lea edx, [esp + 0x38]
push 0x583f60
push edx
call edi
add esp, 0xc
push str.Mirc.ini
push 0x3e7
push 0x5ac5e0
push 0x583b74
lea edx, [esp + 0x44]
mov ecx, str.chanfolder
call fcn.004b1f10
mov al, byte [0x5ac5e0]
test al, al
jne 0x52ace0
mov esi, dword [0x5b430c]
test esi, esi
mov edi, dword [esp + 0x1c]
je 0x52ad8c
mov ecx, dword [esp + 0x20]
cmp dword [esi + 0x708], ebp
jne 0x52ad80
cmp esi, edi
je 0x52ad80
push 0
lea edx, [esi + 8]
call fcn.004c7e10
test eax, eax
je 0x52ad8c
mov ecx, eax
mov dword [esp + 0x20], ecx
mov esi, dword [esi + 0xd9c]
test esi, esi
jne 0x52ad60
jmp 0x52ad90
mov ecx, dword [esp + 0x20]
push 0
xor edx, edx
call fcn.0051f5e0
cmp dword [edi + 0x708], ebp
mov dword [esp + 0x20], eax
jne 0x52adcb
push 0
lea edx, [edi + 8]
xor ecx, ecx
call fcn.004c7e10
test eax, eax
je 0x52adc7
mov ecx, dword [esp + 0x20]
push eax
mov edx, ecx
call fcn.004c8060
mov dword [esp + 0x20], eax
jmp 0x52adcb
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
xor edi, edi
test eax, eax
mov esi, eax
je 0x52adf2
mov ecx, dword [ebp + 0x20e8]
lea ecx, [ecx]
cmp edi, ecx
je 0x52adee
mov esi, dword [esi + 0x40]
inc edi
test esi, esi
jne 0x52ade0
jmp 0x52adf2
test esi, esi
jne 0x52ae00
xor edi, edi
test eax, eax
mov esi, eax
je 0x52ae3f
lea ebx, [ebx]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52ae05
sub eax, edx
push eax
mov eax, dword [esi]
push eax
push ebx
call fcn.00580a2f
add esp, 0xc
test eax, eax
je 0x52afcb
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x52ae32
mov esi, dword [esp + 0x20]
xor edi, edi
jmp 0x52ae33
inc edi
cmp edi, dword [ebp + 0x20e8]
je 0x52ae3f
test esi, esi
jne 0x52ae00
lea ecx, [esp + 0x20]
mov dword [ebp + 0x20e8], edi
call fcn.004c8280
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x874]
test eax, eax
mov ebp, 2
je 0x52b050
mov eax, dword [ecx + 0x708]
cmp eax, 1
je 0x52ae85
cmp eax, 9
jne 0x52b050
cmp dword [ecx + 0x70c], ebp
jne 0x52b050
mov dword [esp + 0x2c], 0
lea ecx, [ecx]
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 0x2154]
mov ecx, dword [ecx + 0x874]
xor edx, edx
cmp esi, 0xffffffff
push 0
sete dl
push 0
push 0x18b
push ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
cmp edi, 0xffffffff
je 0x52b028
test edi, edi
jle 0x52b028
mov dword [esp + 0x18], 0
jmp 0x52aee0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x874]
push 0x5aa640
push edx
push 0x189
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x52b012
test eax, eax
jle 0x52b012
mov edx, 0xf
mov ecx, 0x5aa640
call fcn.00524b30
mov al, byte [esp + 0x13]
test al, al
mov ebp, 0x5aa640
je 0x52af39
cmp al, byte [0x5aa640]
jne 0x52b012
mov esi, dword [esp + 0x24]
mov edx, esi
mov ecx, 0x5aa640
call fcn.004ff650
test al, al
je 0x52af5e
lea ecx, [ecx]
inc ebp
mov edx, esi
mov ecx, ebp
call fcn.004ff650
test al, al
jne 0x52af50
cmp byte [ebp], 0
je 0x52b012
mov eax, dword [esp + 0x20]
test eax, eax
je 0x52affa
push 0x5846fc
push ebx
call fcn.00571fd0
add esp, 8
test eax, eax
je 0x52af97
push 1
push 0
mov edx, ebp
mov ecx, ebx
call fcn.00542310
test eax, eax
jne 0x52afb8
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52afa0
sub eax, edx
push eax
push ebp
push ebx
call fcn.00580a2f
add esp, 0xc
test eax, eax
jne 0x52b012
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov dword [eax + 0x2154], edx
jmp 0x52b2fa
mov esi, dword [esi]
mov ecx, 0x5aa640
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
test al, al
jne 0x52afd2
mov ecx, dword [esp + 0x24]
inc edi
mov dword [ecx + 0x20e8], edi
lea ecx, [esp + 0x20]
mov ebp, 0x5aa640
call fcn.004c8280
jmp 0x52b2fa
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x2154]
cmp eax, dword [esp + 0x18]
jne 0x52b012
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x18]
inc eax
cmp eax, edi
mov dword [esp + 0x18], eax
jl 0x52aee0
mov ebp, 2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ebp
mov dword [ecx + 0x2154], 0xffffffff
mov dword [esp + 0x2c], eax
jge 0x52a92e
mov ecx, dword [esp + 0x1c]
jmp 0x52ae90
cmp dword [ecx + 0x708], ebp
jne 0x52b0f9
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x70c], ebp
jne 0x52b0f9
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x20e0]
test eax, eax
je 0x52b0f9
mov esi, eax
lea esp, [esp]
mov edx, dword [esi + 0x1c]
mov ecx, 1
cmp edx, ecx
je 0x52b125
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x52b080
mov esi, dword [eax + 0x44]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x1c], ecx
push 0x5846fc
push ebx
call fcn.00571fd0
add esp, 8
test eax, eax
je 0x52b0c4
mov edx, dword [esi]
push 1
push 0
mov ecx, ebx
call fcn.00542310
test eax, eax
jne 0x52b131
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52b0d0
sub eax, edx
push eax
mov eax, dword [esi]
push eax
push ebx
call fcn.00580a2f
add esp, 0xc
test eax, eax
je 0x52b131
cmp esi, dword [edi + 0x20e0]
je 0x52b0f9
mov esi, dword [esi + 0x44]
test esi, esi
jne 0x52b0a1
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x708], ebp
jne 0x52b1c6
mov edx, ecx
mov eax, dword [edx + 0x70c]
cmp eax, ebp
je 0x52b1c6
cmp eax, 1
jne 0x52b147
mov esi, ecx
add esi, 8
jmp 0x52b164
mov dword [esi + 0x1c], 0
jmp 0x52b09a
mov esi, dword [esi]
mov ecx, 0x5aa640
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
test al, al
jne 0x52b138
jmp 0x52b2f5
mov edi, dword [esp + 0x1c]
add edi, 8
push 0x20
push edi
call fcn.00570260
mov esi, eax
add esp, 8
test esi, esi
jne 0x52b163
mov esi, edi
jmp 0x52b164
inc esi
cmp byte [esi], 0
je 0x52b1c6
push 0x5846fc
push ebx
call fcn.00571fd0
add esp, 8
test eax, eax
je 0x52b18c
push 1
push 0
mov edx, esi
mov ecx, ebx
call fcn.00542310
test eax, eax
jne 0x52b1ae
cmp byte [esi], 0
je 0x52b1c6
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52b196
sub eax, edx
push eax
push esi
push ebx
call fcn.00580a2f
add esp, 0xc
test eax, eax
jne 0x52b1c6
mov edx, 0x5aa640
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x52b1b7
jmp 0x52b2f5
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x708]
test eax, eax
je 0x52b1dc
cmp eax, ebp
jne 0x52b260
mov ebp, dword [esp + 0x24]
mov edi, dword [ebp + 0x2158]
test edi, edi
je 0x52b1f7
mov edx, ebp
mov ecx, edi
call fcn.004e35f0
test eax, eax
jne 0x52b1fd
mov edi, dword [ebp + 0x215c]
test edi, edi
mov esi, edi
je 0x52b260
push 0x5846fc
push ebx
call fcn.00571fd0
add esp, 8
test eax, eax
je 0x52b226
push 1
push 0
mov edx, esi
mov ecx, ebx
call fcn.00542310
test eax, eax
jne 0x52b271
mov eax, ebx
lea edx, [eax + 1]
jmp 0x52b230
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52b230
sub eax, edx
push eax
push esi
push ebx
call fcn.00580a2f
add esp, 0xc
test eax, eax
je 0x52b271
mov esi, dword [esi + 0x3b4]
test esi, esi
jne 0x52b258
mov esi, dword [ebp + 0x215c]
cmp esi, edi
je 0x52b260
test esi, esi
jne 0x52b203
mov ecx, dword [esp + 0x2c]
call fcn.0052a590
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, dword [esi + 0x3b4]
mov edx, 0x5aa640
mov dword [ebp + 0x2158], ecx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x52b286
push 0x21
push 0x5aa640
call fcn.00570260
add esp, 8
test eax, eax
je 0x52b2f5
mov byte [eax], 0
jmp 0x52b2f5
mov edx, 0x5aa640
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x52b2b1
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xbbc]
mov ecx, dword [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, 0x5aa640
call fcn.00480140
test eax, eax
je 0x52a92e
mov al, byte [0x5aa640]
test al, al
je 0x52a92e
mov ebp, 0x5aa640
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52b300
mov ecx, dword [esp + 0x14]
sub eax, edx
add ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
mov al, byte [ecx + 0x5aaa28]
test al, al
lea ecx, [ecx + 0x5aaa28]
je 0x52b37d
mov eax, 0x5aa640
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x52b330
sub eax, esi
mov esi, eax
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x52b340
sub eax, edi
add eax, esi
cmp eax, 0x3b5
ja 0x52b37d
mov eax, ecx
mov edx, ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52b356
mov edi, 0x5aa640
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x52b365
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 0x5aaa28
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52b385
sub eax, edx
mov edx, eax
mov eax, ebp
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52b395
sub eax, esi
add eax, edx
cmp eax, 0x3b5
ja 0x52b3d8
mov ecx, ebp
lea esp, [esp]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x52b3b0
mov edi, 0x5aaa28
sub ebp, ecx
mov esi, ecx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52b3c2
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xb
push esi
call edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x89c]
push 0x5aaa28
mov ecx, esi
call fcn.00477d50
push 0
push 1
push 0xb
push esi
call edi
mov eax, dword [esp + 0x14]
push eax
push eax
mov edx, 1
mov ecx, esi
call fcn.004779b0
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret