Function at 0x546d30
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 + 0x708]
stosw word es:[edi], ax
xor ebx, ebx
stosb byte es:[edi], al
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
jne 0x546dcd
cmp dword [esi + 0x8a4], ebx
mov dword [esp + 0x18], eax
jne 0x546d99
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x8a8], eax
jne 0x546dcd
mov eax, dword [esi + 0xbbc]
mov edx, dword [eax + 0xf28]
imul edx, edx, 0x64
lea ecx, [esi + 0x8ac]
push ecx
lea ecx, [edx + eax + 0xdfc]
mov edx, esi
call fcn.004ffbe0
test eax, eax
jne 0x546dcd
mov dword [esp + 0x18], ebx
test byte [esp + 0x10], 1
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
je 0x546e40
mov eax, dword [esi + 0x86c]
cmp eax, ebx
je 0x546e40
lea ecx, [esp + 0x480]
push ecx
push 0x3e7
push 0xd
push eax
call ebp
mov ecx, dword [esi + 0x86c]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x89c]
push ebx
call fcn.00477a90
mov eax, dword [esi + 0x884]
cmp eax, ebx
je 0x546e27
push eax
mov eax, dword [esi + 0x86c]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esi + 0x86c]
push ecx
mov dword [esi + 0x884], ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x86c], ebx
test byte [esp + 0x10], 2
je 0x546ead
mov eax, dword [esi + 0x870]
cmp eax, ebx
je 0x546ead
lea edx, [esp + 0x98]
push edx
push 0x3e7
push 0xd
push eax
call ebp
mov edx, dword [esi + 0x89c]
mov ecx, dword [esi + 0x870]
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00477a90
mov eax, dword [esi + 0x888]
cmp eax, ebx
je 0x546e94
mov ecx, dword [esi + 0x870]
push eax
push 0xfffffffffffffffc
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esi + 0x870]
push edx
mov dword [esi + 0x888], ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x870], ebx
mov eax, dword [esi + 0x8a0]
cmp eax, ebx
mov dword [esp + 0x20], 0x54011044
jne 0x546ec7
mov dword [esp + 0x20], 0x540110c4
cmp eax, ebx
mov edi, dword [esi + 0x9ec]
mov dword [esi + 0x894], ebx
mov dword [esi + 0x898], ebx
je 0x546edf
add edi, edi
mov ecx, dword [esi + 0x87c]
mov eax, 3
cmp ecx, eax
jne 0x546efe
mov dword [esp + 0x10], 0x20000
mov dword [esi + 0x898], eax
jmp 0x546f0c
mov dword [esp + 0x10], ebx
mov dword [esi + 0x898], 1
mov eax, dword [esi]
mov ecx, dword [esi + 0x898]
mov dword [esp + 0x24], eax
mov eax, dword [0x5aa60c]
add edi, ecx
mov ecx, dword [str.Edit]
cmp eax, ebx
mov al, byte [0x586388]
je 0x546f4e
mov edx, dword [str.RichEdit20A]
mov dword [esp + 0x28], edx
mov edx, dword [0x586a4c]
mov dword [esp + 0x2c], edx
mov edx, dword [0x586a50]
mov dword [esp + 0x30], edx
jmp 0x546f56
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2c], al
cmp dword [0x5b1220], ebx
jne 0x546f66
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2c], al
cmp dword [esi + 0x86c], ebx
jne 0x5470bf
mov dword [esi + 0x890], ebx
mov dword [esi + 0x89c], ebx
mov edi, edi
mov eax, dword [0x5b4310]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ebx
push eax
push 0x8099
push ecx
mov ecx, dword [esp + 0x20]
push edi
push ebx
push ebx
push ebx
push edx
push 0x583b74
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [esi + 0x86c], eax
je 0x547012
lea edx, [esp + 0x28]
push str.RichEdit20A
push edx
call fcn.005809c6
add esp, 8
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
push 0x525c80
mov dword [esi + 0x89c], eax
mov eax, dword [esi + 0x86c]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp eax, ebx
mov dword [esi + 0x884], eax
jne 0x547044
mov ecx, dword [esi + 0x86c]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x86c], ebx
mov dword [esi + 0x89c], ebx
lea edx, [esp + 0x28]
push str.Edit
push edx
call fcn.005809c6
add esp, 8
test eax, eax
je 0x54711b
mov eax, dword [str.Edit]
mov cl, byte [0x586388]
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], cl
jmp 0x546f80
cmp dword [esi + 0x89c], ebx
je 0x547087
mov edx, dword [esi + 0x86c]
push ebx
push 9
push 0x459
push edx
call ebp
mov eax, dword [esi + 0x86c]
push ebx
push 0x64
push 0x452
push eax
call ebp
cmp dword [esi + 0x89c], ebx
je 0x547087
mov ecx, dword [esi + 0x86c]
push 1
push ebx
push 0x445
push ecx
call ebp
mov eax, dword [esi + 0x86c]
cmp eax, ebx
je 0x5470bf
cmp byte [esp + 0x480], bl
je 0x5470bf
lea edx, [esp + 0x480]
push edx
push ebx
push 0xc
push eax
call ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x89c]
mov ecx, dword [esi + 0x86c]
push eax
push eax
call fcn.004779b0
cmp dword [esi + 0x870], ebx
jne 0x547237
cmp dword [esi + 0x708], 1
jne 0x5471ff
cmp dword [esp + 0x18], ebx
je 0x5471ff
mov eax, dword [0x5b4310]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ebx
push eax
push 0x809a
push ecx
mov ecx, dword [esp + 0x20]
push edi
push ebx
push ebx
push ebx
push edx
push 0x583b74
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [esi + 0x870], eax
jne 0x547125
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x525c80
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp eax, ebx
mov dword [esi + 0x888], eax
jne 0x547150
mov edx, dword [esi + 0x870]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x870], ebx
mov eax, dword [esi + 0x870]
cmp eax, ebx
je 0x5471ff
cmp dword [esi + 0x89c], ebx
je 0x547182
push ebx
push 9
push 0x459
push eax
call ebp
mov eax, dword [esi + 0x870]
push ebx
push 0x64
push 0x452
push eax
call ebp
cmp dword [esi + 0x89c], ebx
je 0x54719b
mov ecx, dword [esi + 0x870]
push 1
push ebx
push 0x445
push ecx
call ebp
cmp dword [esi + 0x944], ebx
je 0x5471f8
mov cl, byte [esi + 0x8de]
cmp cl, bl
lea eax, [esi + 0x8de]
je 0x5471f8
push eax
lea edx, [esp + 0x9c]
push 0x58459c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + 0x870]
add esp, 0xc
lea eax, [esp + 0x98]
push eax
push ebx
push 0xc
push ecx
call ebp
mov ecx, dword [esi + 0x870]
push 0x7d000
push 0x7d000
mov edx, 1
call fcn.004779b0
mov byte [esp + 0x98], bl
mov eax, dword [esi + 0x870]
cmp eax, ebx
je 0x547237
cmp byte [esp + 0x98], bl
je 0x547237
lea edx, [esp + 0x98]
push edx
push ebx
push 0xc
push eax
call ebp
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x89c]
mov ecx, dword [esi + 0x870]
push eax
push eax
call fcn.004779b0
mov eax, dword [esi + 0x86c]
cmp eax, ebx
je 0x547364
lea ecx, [esp + 0x480]
push ecx
push 0x3e7
push 0xd
push eax
call ebp
mov ecx, dword [esi + 0x86c]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x89c]
push ebx
call fcn.00477a90
mov eax, dword [esi + 0x974]
mov ecx, dword [esi + 0x86c]
push ebx
push eax
push 0x30
push ecx
call ebp
mov edx, dword [esi + 0x86c]
push ebx
push ebx
push 0xc8
push edx
call ebp
cmp dword [esi + 0x89c], ebx
je 0x547339
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x5a5534]
mov dword [esp + 0x5c], 0x3c
mov dword [esp + 0x60], 0x40000000
call fcn.004336b0
mov edx, dword [esi + 0x86c]
mov eax, dword [eax*4 + 0x5a47c0]
lea ecx, [esp + 0x5c]
push ecx
push ebx
push 0x444
push edx
mov dword [esp + 0x80], eax
call ebp
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [esi + 0x86c], eax
jne 0x547317
mov ecx, dword [0x5a5538]
call fcn.004336b0
mov eax, dword [eax*4 + 0x5a47c0]
mov ecx, dword [esi + 0x86c]
push eax
push ebx
push 0x443
push ecx
jmp 0x547337
mov ecx, dword [0x5a553c]
call fcn.004336b0
mov edx, dword [eax*4 + 0x5a47c0]
mov eax, dword [esi + 0x86c]
push edx
push ebx
push 0x443
push eax
call ebp
mov edx, dword [esi + 0x86c]
lea ecx, [esp + 0x480]
push ecx
push ebx
push 0xc
push edx
call ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x89c]
mov ecx, dword [esi + 0x86c]
push eax
push eax
call fcn.004779b0
mov eax, dword [esi + 0x870]
cmp eax, ebx
je 0x547491
lea ecx, [esp + 0x98]
push ecx
push 0x3e7
push 0xd
push eax
call ebp
mov ecx, dword [esi + 0x870]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 0x89c]
push ebx
call fcn.00477a90
mov eax, dword [esi + 0x974]
mov ecx, dword [esi + 0x870]
push ebx
push eax
push 0x30
push ecx
call ebp
mov edx, dword [esi + 0x870]
push ebx
push ebx
push 0xc8
push edx
call ebp
cmp dword [esi + 0x89c], ebx
je 0x547466
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x5a5534]
mov dword [esp + 0x5c], 0x3c
mov dword [esp + 0x60], 0x40000000
call fcn.004336b0
mov edx, dword [esi + 0x870]
mov eax, dword [eax*4 + 0x5a47c0]
lea ecx, [esp + 0x5c]
push ecx
push ebx
push 0x444
push edx
mov dword [esp + 0x80], eax
call ebp
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [esi + 0x870], eax
jne 0x547444
mov ecx, dword [0x5a5538]
call fcn.004336b0
mov eax, dword [eax*4 + 0x5a47c0]
mov ecx, dword [esi + 0x870]
push eax
push ebx
push 0x443
push ecx
jmp 0x547464
mov ecx, dword [0x5a553c]
call fcn.004336b0
mov edx, dword [eax*4 + 0x5a47c0]
mov eax, dword [esi + 0x870]
push edx
push ebx
push 0x443
push eax
call ebp
mov edx, dword [esi + 0x870]
lea ecx, [esp + 0x98]
push ecx
push ebx
push 0xc
push edx
call ebp
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x89c]
mov ecx, dword [esi + 0x870]
push eax
push eax
call fcn.004779b0
mov eax, dword [esi + 0x86c]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret