Function at 0x52286a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x3e7
push 0
lea eax, [ebp - 0x46c]
push eax
call fcn.0054c150
add esp, 0xc
push 0x3e7
push 0
lea edx, [ebp - 0x854]
push edx
call fcn.0054c150
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x6bc], 1
jne 0x522908
mov dword [ebp - 0x14], 1
cmp dword [ebx + 0x854], 0
jne 0x5228d3
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0x858], 1
jne 0x522908
lea edx, [ebx + 0x85c]
push edx
push ebx
mov eax, dword [ebx + 0xb6c]
imul ecx, dword [eax + 0xb84], 0x64
add ecx, eax
add ecx, 0xa58
push ecx
call fcn.004edd74
test eax, eax
jne 0x522908
xor eax, eax
mov dword [ebp - 0x14], eax
test esi, 1
je 0x52297c
mov eax, dword [ebx + 0x818]
test eax, eax
je 0x52297c
lea edx, [ebp - 0x46c]
push edx
push 0x3e7
push 0xd
push eax
call sub.USER32.dll_SendMessageA
lea ecx, [ebp - 0xc]
push ecx
push 0
push dword [ebx + 0x84c]
push dword [ebx + 0x818]
call fcn.00478d41
cmp dword [ebx + 0x830], 0
je 0x522961
push dword [ebx + 0x830]
push 0xfffffffffffffffc
push dword [ebx + 0x818]
call sub.USER32.dll_SetWindowLongA
xor eax, eax
mov dword [ebx + 0x830], eax
push dword [ebx + 0x818]
call sub.USER32.dll_DestroyWindow
xor edx, edx
mov dword [ebx + 0x818], edx
test esi, 2
je 0x5229f0
mov eax, dword [ebx + 0x81c]
test eax, eax
je 0x5229f0
lea edx, [ebp - 0x854]
push edx
push 0x3e7
push 0xd
push eax
call sub.USER32.dll_SendMessageA
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebx + 0x84c]
push dword [ebx + 0x81c]
call fcn.00478d41
cmp dword [ebx + 0x834], 0
je 0x5229d5
push dword [ebx + 0x834]
push 0xfffffffffffffffc
push dword [ebx + 0x81c]
call sub.USER32.dll_SetWindowLongA
xor eax, eax
mov dword [ebx + 0x834], eax
push dword [ebx + 0x81c]
call sub.USER32.dll_DestroyWindow
xor edx, edx
mov dword [ebx + 0x81c], edx
mov edi, 0x54011044
cmp dword [ebx + 0x850], 0
jne 0x522a04
or edi, 0x80
xor eax, eax
mov dword [ebx + 0x844], eax
xor edx, edx
mov dword [ebx + 0x848], edx
mov eax, dword [ebx + 0x99c]
mov esi, eax
cmp dword [ebx + 0x850], 0
je 0x522a27
add esi, eax
cmp dword [ebx + 0x828], 3
jne 0x522a43
mov dword [ebp - 4], 0x20000
mov dword [ebx + 0x848], 3
jmp 0x522a52
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebx + 0x848], 1
add esi, dword [ebx + 0x848]
mov edx, dword [ebx]
mov dword [ebp - 8], edx
cmp dword [0x55cfec], 0
je 0x522a79
push esi
push edi
mov esi, 0x56d4ae
lea edi, [ebp - 0x48]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x522a89
push esi
push edi
mov esi, 0x56d4ba
lea edi, [ebp - 0x48]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
push esi
push edi
mov esi, 0x56d4c0
lea edi, [ebp - 0x48]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
cmp dword [ebx + 0x818], 0
jne 0x522c17
xor edx, edx
mov dword [ebx + 0x83c], edx
xor ecx, ecx
mov dword [ebx + 0x840], ecx
xor eax, eax
mov dword [ebx + 0x84c], eax
push 0
push dword [0x56cee4]
push 0x8099
push dword [ebp - 8]
push esi
push 0
push 0
push 0
push edi
push 0x56d4c6
lea edx, [ebp - 0x48]
push edx
push dword [ebp - 4]
call sub.USER32.dll_CreateWindowExA
mov dword [ebx + 0x818], eax
cmp dword [ebx + 0x818], 0
jne 0x522b24
push 0x56d4ca
lea ecx, [ebp - 0x48]
push ecx
call fcn.0054c494
add esp, 8
test eax, eax
jne 0x522b12
xor eax, eax
jmp 0x522f3f
push esi
push edi
mov esi, str.edit
lea edi, [ebp - 0x48]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x522abe
push str.RichEdit20A
lea edx, [ebp - 0x48]
push edx
call fcn.0054c494
add esp, 8
test eax, eax
jne 0x522b45
mov dword [ebx + 0x84c], 2
jmp 0x522b4d
xor ecx, ecx
mov dword [ebx + 0x84c], ecx
push 0x50dcc8
push 0xfffffffffffffffc
push dword [ebx + 0x818]
call sub.USER32.dll_SetWindowLongA
mov dword [ebx + 0x830], eax
cmp dword [ebx + 0x830], 0
jne 0x522b8e
push dword [ebx + 0x818]
call sub.USER32.dll_DestroyWindow
xor eax, eax
mov dword [ebx + 0x818], eax
xor edx, edx
mov dword [ebx + 0x84c], edx
jmp 0x522af6
cmp dword [ebx + 0x84c], 2
jne 0x522bbf
push 0
push 9
push 0x459
push dword [ebx + 0x818]
call sub.USER32.dll_SendMessageA
push 0
push 0x64
push 0x452
push dword [ebx + 0x818]
call sub.USER32.dll_SendMessageA
cmp dword [ebx + 0x84c], 0
je 0x522bdc
push 1
push 0
push 0x445
push dword [ebx + 0x818]
call sub.USER32.dll_SendMessageA
mov eax, dword [ebx + 0x818]
test eax, eax
je 0x522c17
cmp byte [ebp - 0x46c], 0
je 0x522c17
lea edx, [ebp - 0x46c]
push edx
push 0
push 0xc
push eax
call sub.USER32.dll_SendMessageA
push dword [ebp - 0xc]
push dword [ebp - 0xc]
push dword [ebx + 0x84c]
push dword [ebx + 0x818]
call fcn.00478c58
cmp dword [ebx + 0x81c], 0
jne 0x522d89
cmp dword [ebx + 0x6bc], 1
jne 0x522d4e
cmp dword [ebp - 0x14], 0
je 0x522d4e
push 0
push dword [0x56cee4]
push 0x809a
push dword [ebp - 8]
push esi
push 0
push 0
push 0
push edi
push 0x56d4e2
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 4]
call sub.USER32.dll_CreateWindowExA
mov dword [ebx + 0x81c], eax
cmp dword [ebx + 0x81c], 0
jne 0x522c7a
xor eax, eax
jmp 0x522f3f
push 0x50dcc8
push 0xfffffffffffffffc
push dword [ebx + 0x81c]
call sub.USER32.dll_SetWindowLongA
mov esi, eax
mov dword [ebx + 0x834], esi
test esi, esi
jne 0x522c9f
xor eax, eax
jmp 0x522f3f
cmp dword [ebx + 0x84c], 2
jne 0x522cd0
push 0
push 9
push 0x459
push dword [ebx + 0x81c]
call sub.USER32.dll_SendMessageA
push 0
push 0x64
push 0x452
push dword [ebx + 0x81c]
call sub.USER32.dll_SendMessageA
cmp dword [ebx + 0x84c], 0
je 0x522ced
push 1
push 0
push 0x445
push dword [ebx + 0x81c]
call sub.USER32.dll_SendMessageA
cmp dword [ebx + 0x8f4], 0
je 0x522d47
cmp byte [ebx + 0x88e], 0
je 0x522d47
lea edx, [ebx + 0x88e]
push edx
push 0x56d4e6
lea ecx, [ebp - 0x854]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x854]
push eax
push 0
push 0xc
push dword [ebx + 0x81c]
call sub.USER32.dll_SendMessageA
push 0x7d000
push 0x7d000
push 1
push dword [ebx + 0x81c]
call fcn.00478c58
mov byte [ebp - 0x854], 0
mov eax, dword [ebx + 0x81c]
test eax, eax
je 0x522d89
cmp byte [ebp - 0x854], 0
je 0x522d89
lea edx, [ebp - 0x854]
push edx
push 0
push 0xc
push eax
call sub.USER32.dll_SendMessageA
push dword [ebp - 0x10]
push dword [ebp - 0x10]
push dword [ebx + 0x84c]
push dword [ebx + 0x81c]
call fcn.00478c58
mov eax, dword [ebx + 0x818]
test eax, eax
je 0x522e61
push 0
push dword [ebx + 0x924]
push 0x30
push eax
call sub.USER32.dll_SendMessageA
push 0
push 0
push 0xc8
push dword [ebx + 0x818]
call sub.USER32.dll_SendMessageA
cmp dword [ebx + 0x84c], 0
je 0x522e61
push 0x3c
push 0
lea edx, [ebp - 0x84]
push edx
call fcn.0054c150
add esp, 0xc
mov dword [ebp - 0x84], 0x3c
mov dword [ebp - 0x80], 0x40000000
mov ecx, dword [0x55f8cc]
mov eax, dword [ecx*4 + 0x57d6d8]
mov dword [ebp - 0x70], eax
lea edx, [ebp - 0x84]
push edx
push 0
push 0x444
push dword [ebx + 0x818]
call sub.USER32.dll_SendMessageA
call sub.USER32.dll_GetFocus
cmp eax, dword [ebx + 0x818]
jne 0x522e43
mov ecx, dword [0x55f8d0]
push dword [ecx*4 + 0x57d6d8]
push 0
push 0x443
push dword [ebx + 0x818]
call sub.USER32.dll_SendMessageA
jmp 0x522e61
mov eax, dword [0x55f8d4]
push dword [eax*4 + 0x57d6d8]
push 0
push 0x443
push dword [ebx + 0x818]
call sub.USER32.dll_SendMessageA
mov eax, dword [ebx + 0x81c]
test eax, eax
je 0x522f39
push 0
push dword [ebx + 0x924]
push 0x30
push eax
call sub.USER32.dll_SendMessageA
push 0
push 0
push 0xc8
push dword [ebx + 0x81c]
call sub.USER32.dll_SendMessageA
cmp dword [ebx + 0x84c], 0
je 0x522f39
push 0x3c
push 0
lea edx, [ebp - 0x84]
push edx
call fcn.0054c150
add esp, 0xc
mov dword [ebp - 0x84], 0x3c
mov dword [ebp - 0x80], 0x40000000
mov ecx, dword [0x55f8cc]
mov eax, dword [ecx*4 + 0x57d6d8]
mov dword [ebp - 0x70], eax
lea edx, [ebp - 0x84]
push edx
push 0
push 0x444
push dword [ebx + 0x81c]
call sub.USER32.dll_SendMessageA
call sub.USER32.dll_GetFocus
cmp eax, dword [ebx + 0x81c]
jne 0x522f1b
mov ecx, dword [0x55f8d0]
push dword [ecx*4 + 0x57d6d8]
push 0
push 0x443
push dword [ebx + 0x81c]
call sub.USER32.dll_SendMessageA
jmp 0x522f39
mov eax, dword [0x55f8d4]
push dword [eax*4 + 0x57d6d8]
push 0
push 0x443
push dword [ebx + 0x81c]
call sub.USER32.dll_SendMessageA
mov eax, dword [ebx + 0x818]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8