Function at 0x51fce0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5de2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7c]
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3bc], ebx
jne 0x51fd32
call fcn.00432d10
cmp eax, 0x501
jge 0x51ff93
mov eax, dword [esi]
mov edx, dword [eax + 0x104]
mov ecx, esi
call edx
xor eax, edi
test eax, 0x300
je 0x51ff93
mov eax, dword [esi + 0x1cc]
mov eax, dword [eax + 0x44]
lea ecx, [esi + 0x1cc]
lea edx, [esp + 0x44]
push edx
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x298]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0x7c], ebx
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x2a0]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
mov ebp, dword [esi + 0x138]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x24c]
mov dword [esp + 0x38], ecx
mov ecx, esi
call eax
push ebp
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
mov dword [esi + 0xdc], edi
call fcn.0051f310
test byte [esi + 0xd8], 0x40
mov ebp, vtable.wxObject.0
je 0x51fe50
mov eax, dword [esi + 0x84]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov ecx, 1
cmp eax, ebx
je 0x51fe0e
add dword [eax + 4], ecx
mov dword [esp + 0x14], vtable.wxFont.0
mov byte [esp + 0x74], cl
lea ecx, [esi + 0x80]
cmp ecx, 0x68d964
je 0x51fe32
push 0x68d964
call fcn.00423b20
mov edx, dword [esi]
mov edx, dword [edx + 0x1c0]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], bl
call fcn.004b26e0
test byte [esi + 0xd8], 0x20
je 0x51fee0
lea edi, [esi + 0x9c]
push edi
lea ecx, [esp + 0x24]
call fcn.0049e040
mov byte [esp + 0x74], 2
cmp edi, 0x68d950
je 0x51fe86
push 0x68d950
mov ecx, edi
call fcn.00423b20
mov eax, dword [0x68d958]
mov dword [edi + 8], eax
movzx ecx, byte [0x68d95c]
mov byte [edi + 0xc], cl
movzx edx, byte [0x68d95d]
mov byte [edi + 0xd], dl
mov al, byte [0x68d95e]
mov byte [edi + 0xe], al
movzx ecx, byte [0x68d95f]
mov byte [edi + 0xf], cl
movzx edx, byte [0x68d960]
mov byte [edi + 0x10], dl
mov eax, dword [esi]
mov edx, dword [eax + 0x1b0]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], bl
mov dword [esp + 0x20], ebp
call fcn.00423980
test byte [esi + 0xd8], 0x10
je 0x51ff70
lea edi, [esi + 0x88]
push edi
lea ecx, [esp + 0x24]
call fcn.0049e040
mov byte [esp + 0x74], 3
cmp edi, 0x68d950
je 0x51ff16
push 0x68d950
mov ecx, edi
call fcn.00423b20
mov eax, dword [0x68d958]
mov dword [edi + 8], eax
movzx ecx, byte [0x68d95c]
mov byte [edi + 0xc], cl
movzx edx, byte [0x68d95d]
mov byte [edi + 0xd], dl
mov al, byte [0x68d95e]
mov byte [edi + 0xe], al
movzx ecx, byte [0x68d95f]
mov byte [edi + 0xf], cl
movzx edx, byte [0x68d960]
mov byte [edi + 0x10], dl
mov eax, dword [esi]
mov edx, dword [eax + 0x1ac]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], bl
mov dword [esp + 0x20], ebp
call fcn.00423980
mov eax, dword [esp + 0x60]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x58], 8
jb 0x51fff0
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00584768
add esp, 4
jmp 0x51fff0
cmp dword [esi + 0x3bc], ebx
je 0x51ffe8
mov edx, dword [esi]
mov eax, dword [edx + 0x104]
mov ecx, esi
call eax
xor eax, edi
test eax, 0x2000
je 0x51ffe8
mov eax, edi
shr eax, 0xd
and al, 1
movzx edx, al
neg edx
sbb edx, edx
and edx, 0x201
add edx, 0xfffffeff
xor ecx, ecx
cmp al, bl
sete cl
push edx
mov edx, dword [esi + 0x138]
add ecx, 2
push ecx
push 0x44d
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov ecx, esi
call fcn.004a6850
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00585b7b
add esp, 0x64
ret 4