Function at 0x53a740
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x858
push ebx
push ebp
xor eax, eax
push esi
push edi
mov esi, ecx
mov ecx, 0xf9
lea edi, [esp + 0x480]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0xf9
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x700]
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov eax, 1
cmp ecx, eax
mov ebx, edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], edi
jne 0x53a7db
cmp dword [esi + 0x89c], edi
mov dword [esp + 0x10], eax
jne 0x53a7a7
mov dword [esp + 0x10], edi
cmp dword [esi + 0x8a0], eax
jne 0x53a7db
mov eax, dword [esi + 0xbb4]
mov edx, dword [eax + 0xf28]
imul edx, edx, 0x64
lea ecx, [esi + 0x8a4]
push ecx
lea ecx, [edx + eax + 0xdfc]
mov edx, esi
call fcn.004f8810
test eax, eax
jne 0x53a7db
mov dword [esp + 0x10], edi
test bl, 1
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
je 0x53a84c
mov eax, dword [esi + 0x864]
cmp eax, edi
je 0x53a84c
lea ecx, [esp + 0x480]
push ecx
push 0x3e7
push 0xd
push eax
call ebp
mov ecx, dword [esi + 0x864]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 0x894]
push edi
call fcn.004743d0
mov eax, dword [esi + 0x87c]
cmp eax, edi
je 0x53a833
push eax
mov eax, dword [esi + 0x864]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esi + 0x864]
push ecx
mov dword [esi + 0x87c], edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x864], edi
test bl, 2
je 0x53a8b7
mov eax, dword [esi + 0x868]
cmp eax, edi
je 0x53a8b7
lea edx, [esp + 0x98]
push edx
push 0x3e7
push 0xd
push eax
call ebp
mov edx, dword [esi + 0x894]
mov ecx, dword [esi + 0x868]
lea eax, [esp + 0x24]
push eax
push edi
call fcn.004743d0
mov eax, dword [esi + 0x880]
cmp eax, edi
je 0x53a89e
mov ecx, dword [esi + 0x868]
push eax
push 0xfffffffffffffffc
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esi + 0x868]
push edx
mov dword [esi + 0x880], edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x868], edi
mov eax, dword [esi + 0x898]
cmp eax, edi
mov dword [esp + 0x14], 0x54011044
jne 0x53a8d1
mov dword [esp + 0x14], 0x540110c4
cmp eax, edi
mov ebx, dword [esi + 0x9e4]
mov dword [esi + 0x88c], edi
mov dword [esi + 0x890], edi
je 0x53a8e9
add ebx, ebx
mov ecx, dword [esi + 0x874]
mov eax, 3
cmp ecx, eax
jne 0x53a908
mov dword [esp + 0x18], 0x20000
mov dword [esi + 0x890], eax
jmp 0x53a916
mov dword [esp + 0x18], edi
mov dword [esi + 0x890], 1
mov eax, dword [esi]
mov ecx, dword [esi + 0x890]
mov dword [esp + 0x1c], eax
mov eax, dword [0x5990b4]
add ebx, ecx
cmp eax, edi
je 0x53a94a
mov ecx, dword [str.RichEdit20A]
mov edx, dword [0x57782c]
mov eax, dword [0x577830]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
cmp dword [esi + 0x864], edi
mov ecx, dword [str.Edit]
mov dl, byte [0x57722c]
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2c], dl
jne 0x53aac2
mov dword [esi + 0x888], edi
mov dword [esi + 0x894], edi
jmp 0x53a980
mov eax, dword [0x5a1afc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push edi
push eax
push 0x8099
push ecx
mov ecx, dword [esp + 0x28]
push ebx
push edi
push edi
push edi
push edx
push 0x574b10
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, edi
mov dword [esi + 0x864], eax
je 0x53aa12
lea edx, [esp + 0x28]
push str.RichEdit20A
push edx
call fcn.00572b46
add esp, 8
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
push 0x519f20
mov dword [esi + 0x894], eax
mov eax, dword [esi + 0x864]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp eax, edi
mov dword [esi + 0x87c], eax
jne 0x53aa44
mov ecx, dword [esi + 0x864]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x864], edi
mov dword [esi + 0x894], edi
lea edx, [esp + 0x28]
push str.Edit
push edx
call fcn.00572b46
add esp, 8
test eax, eax
je 0x53ab36
mov eax, dword [str.Edit]
mov cl, byte [0x57722c]
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], cl
jmp 0x53a980
cmp dword [esi + 0x894], 2
jne 0x53aa6f
mov edx, dword [esi + 0x864]
push edi
push 9
push 0x459
push edx
call ebp
mov eax, dword [esi + 0x864]
push edi
push 0x64
push 0x452
push eax
call ebp
cmp dword [esi + 0x894], edi
je 0x53aa88
mov ecx, dword [esi + 0x864]
push 1
push edi
push 0x445
push ecx
call ebp
mov eax, dword [esi + 0x864]
cmp eax, edi
je 0x53aac2
mov cl, byte [esp + 0x480]
test cl, cl
je 0x53aac2
lea edx, [esp + 0x480]
push edx
push edi
push 0xc
push eax
call ebp
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x894]
mov ecx, dword [esi + 0x864]
push eax
push eax
call fcn.004742f0
cmp dword [esi + 0x868], edi
jne 0x53ac23
cmp dword [esi + 0x700], 1
jne 0x53abe9
cmp dword [esp + 0x10], edi
je 0x53abe9
mov eax, dword [0x5a1afc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push edi
push eax
push 0x809a
push ecx
mov ecx, dword [esp + 0x28]
push ebx
push edi
push edi
push edi
push edx
push 0x574b10
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, edi
mov dword [esi + 0x868], eax
je 0x53ab36
push 0x519f20
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp eax, edi
mov dword [esi + 0x880], eax
jne 0x53ab40
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x894], 2
jne 0x53ab6b
mov edx, dword [esi + 0x868]
push edi
push 9
push 0x459
push edx
call ebp
mov eax, dword [esi + 0x868]
push edi
push 0x64
push 0x452
push eax
call ebp
cmp dword [esi + 0x894], edi
je 0x53ab84
mov ecx, dword [esi + 0x868]
push 1
push edi
push 0x445
push ecx
call ebp
cmp dword [esi + 0x93c], edi
je 0x53abe1
mov cl, byte [esi + 0x8d6]
test cl, cl
lea eax, [esi + 0x8d6]
je 0x53abe1
push eax
lea edx, [esp + 0x9c]
push 0x575534
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + 0x868]
add esp, 0xc
lea eax, [esp + 0x98]
push eax
push edi
push 0xc
push ecx
call ebp
mov ecx, dword [esi + 0x868]
push 0x7d000
push 0x7d000
mov edx, 1
call fcn.004742f0
mov byte [esp + 0x98], 0
mov eax, dword [esi + 0x868]
cmp eax, edi
je 0x53ac23
mov cl, byte [esp + 0x98]
test cl, cl
je 0x53ac23
lea edx, [esp + 0x98]
push edx
push edi
push 0xc
push eax
call ebp
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x894]
mov ecx, dword [esi + 0x868]
push eax
push eax
call fcn.004742f0
mov eax, dword [esi + 0x864]
cmp eax, edi
mov ebx, dword [sym.imp.USER32.dll_GetFocus]
je 0x53acfd
mov ecx, dword [esi + 0x96c]
push edi
push ecx
push 0x30
push eax
call ebp
mov edx, dword [esi + 0x864]
push edi
push edi
push 0xc8
push edx
call ebp
cmp dword [esi + 0x894], edi
je 0x53acfd
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x5940c4]
mov dword [esp + 0x5c], 0x3c
mov dword [esp + 0x60], 0x40000000
call fcn.00431e50
mov edx, dword [esi + 0x864]
mov eax, dword [eax*4 + 0x593350]
lea ecx, [esp + 0x5c]
push ecx
push 0
push 0x444
push edx
mov dword [esp + 0x80], eax
call ebp
call ebx
cmp dword [esi + 0x864], eax
jne 0x53acd8
mov ecx, dword [0x5940c8]
call fcn.00431e50
mov eax, dword [eax*4 + 0x593350]
mov ecx, dword [esi + 0x864]
push eax
push 0
push 0x443
push ecx
jmp 0x53acf9
mov ecx, dword [0x5940cc]
call fcn.00431e50
mov edx, dword [eax*4 + 0x593350]
mov eax, dword [esi + 0x864]
push edx
push 0
push 0x443
push eax
call ebp
xor edi, edi
mov eax, dword [esi + 0x868]
cmp eax, edi
je 0x53addd
mov ecx, dword [esi + 0x96c]
push edi
push ecx
push 0x30
push eax
call ebp
mov edx, dword [esi + 0x868]
push edi
push edi
push 0xc8
push edx
call ebp
cmp dword [esi + 0x894], edi
je 0x53addd
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x5940c4]
mov dword [esp + 0x5c], 0x3c
mov dword [esp + 0x60], 0x40000000
call fcn.00431e50
mov edx, dword [esi + 0x868]
mov eax, dword [eax*4 + 0x593350]
lea ecx, [esp + 0x5c]
push ecx
push 0
push 0x444
push edx
mov dword [esp + 0x80], eax
call ebp
call ebx
cmp dword [esi + 0x868], eax
jne 0x53adba
mov ecx, dword [0x5940c8]
call fcn.00431e50
mov eax, dword [eax*4 + 0x593350]
mov ecx, dword [esi + 0x868]
push eax
push 0
push 0x443
push ecx
call ebp
mov eax, dword [esi + 0x864]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5940cc]
call fcn.00431e50
mov edx, dword [eax*4 + 0x593350]
mov eax, dword [esi + 0x868]
push edx
push 0
push 0x443
push eax
call ebp
mov eax, dword [esi + 0x864]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret