Function at 0x51e03f2d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [0x51e8bab8], 0
push ebx
push esi
push edi
je 0x51e25256
push dword [ebp + 0x14]
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp + 0x10]
mov dword [0x51e8bba0], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
leave
ret 0x10
and dword [ebp - 4], 0
call fcn.51e6cf61
test eax, eax
mov ebx, dword [ebp + 0xc]
mov esi, 0x40b
mov edx, 0x41c
mov edi, 0x44d
mov ecx, 0x1053
je 0x51e25301
cmp ebx, ecx
ja 0x51e252c5
je 0x51e252f5
mov eax, 0x444
cmp ebx, eax
ja 0x51e252af
je 0x51e252f5
cmp ebx, 0x40a
jb 0x51e25306
cmp ebx, esi
jbe 0x51e252f5
cmp ebx, edx
je 0x51e252f5
cmp ebx, 0x43e
jbe 0x51e25306
cmp ebx, 0x440
jmp 0x51e252c1
cmp ebx, edi
je 0x51e252f5
cmp ebx, 0x104a
jbe 0x51e25306
cmp ebx, 0x104d
jbe 0x51e252f5
jmp 0x51e25306
cmp ebx, 0x1061
je 0x51e252f5
cmp ebx, 0x1072
jbe 0x51e25301
cmp ebx, 0x1074
jbe 0x51e252f5
cmp ebx, 0x1076
je 0x51e252f5
cmp ebx, 0x133c
je 0x51e252f5
cmp ebx, 0x133e
jne 0x51e25301
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
jmp 0x51e2574f
mov eax, 0x444
cmp ebx, esi
ja 0x51e25577
je 0x51e25539
mov eax, 0x158
cmp ebx, eax
ja 0x51e25491
je 0x51e25345
add eax, 0xffffffeb
cmp ebx, eax
ja 0x51e2545c
je 0x51e25345
mov eax, ebx
sub eax, 0xc
je 0x51e25426
dec eax
je 0x51e2537c
sub eax, 0xb5
jne 0x51e252f5
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x14]
shr eax, 0x10
test ax, ax
je 0x51e252f8
lea esi, [ebp + 0x14]
call fcn.51e49279
test eax, eax
pop ecx
je 0x51e259e7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 0x14]
jmp 0x51e259de
mov edi, dword [ebp + 0x10]
lea esi, [edi + edi]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.51e038cf
mov ebx, esp
push ebx
push esi
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x51e8b69c]
xor ecx, ecx
cmp word [eax + 0x537c], cx
jne 0x51e253c8
cmp word [eax + 0x53a4], cx
jne 0x51e253c8
movzx eax, word [eax + 0x53ac]
push edi
push dword [ebp + 0x14]
push 0xffffffffffffffff
push ebx
push ecx
jmp 0x51e253f5
call fcn.51e57f40
cmp eax, 0x41e
je 0x51e253ec
cmp eax, 0x42a
je 0x51e253ec
push edi
push dword [ebp + 0x14]
push 0xffffffffffffffff
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x51e253f5
push edi
push dword [ebp + 0x14]
push 0xffffffffffffffff
push ebx
push 0
push eax
call fcn.51e6d0e6
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
cmp edi, eax
jbe 0x51e25410
mov ecx, dword [ebp + 0x14]
mov word [esi + ecx - 2], ax
cmp dword [ebp + 0x14], eax
je 0x51e03f5b
push dword [ebp + 0x14]
call fcn.51e03933
jmp 0x51e03f5b
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x14]
shr eax, 0x10
test ax, ax
jne 0x51e2543e
push dword [ebp + 0x10]
push 0xc
jmp 0x51e2574f
lea esi, [ebp + 0x14]
call fcn.51e49279
test eax, eax
pop ecx
je 0x51e259e7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xc
jmp 0x51e2536b
cmp ebx, 0x148
je 0x51e25510
cmp ebx, 0x14a
je 0x51e25345
cmp ebx, 0x14b
jbe 0x51e252f5
cmp ebx, 0x14d
jbe 0x51e25345
jmp 0x51e252f5
cmp ebx, 0x180
jb 0x51e252f5
cmp ebx, 0x181
jbe 0x51e25345
cmp ebx, 0x189
je 0x51e25510
cmp ebx, 0x18c
je 0x51e25345
cmp ebx, 0x18f
je 0x51e25345
cmp ebx, 0x1a2
je 0x51e25345
cmp ebx, 0x40a
jne 0x51e252f5
mov eax, dword [ebp + 0x14]
push 0x14
pop ecx
push dword [eax + 0x14]
mov esi, eax
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x40]
call fcn.51e49279
test eax, eax
pop ecx
je 0x51e259e7
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x10]
push 0x401
jmp 0x51e25566
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
cmp esi, 0xffffffff
je 0x51e25532
push dword [ebp + 0x14]
push dword [ebp + 0x14]
call fcn.51e747d8
mov eax, esi
jmp 0x51e03f5b
mov eax, dword [ebp + 0x14]
push 0x14
pop ecx
push dword [eax + 0x14]
mov esi, eax
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x40]
call fcn.51e49279
test eax, eax
pop ecx
je 0x51e259e7
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x10]
push 0x406
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x40]
jmp 0x51e259de
cmp ebx, ecx
ja 0x51e25844
je 0x51e25812
cmp ebx, edi
ja 0x51e2575d
je 0x51e2570b
cmp ebx, edx
je 0x51e256a1
cmp ebx, 0x43e
jbe 0x51e252f5
cmp ebx, 0x440
jbe 0x51e25618
cmp ebx, eax
jne 0x51e252f5
mov edi, dword [ebp + 0x10]
test edi, edi
jbe 0x51e255e3
mov ebx, dword [ebp + 0x14]
add ebx, 0x10
mov dword [ebp + 0xc], edi
push dword [ebx]
and dword [ebp + 0x10], 0
lea esi, [ebp + 0x10]
call fcn.51e49279
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
add ebx, 0x14
dec dword [ebp + 0xc]
pop ecx
jne 0x51e255c7
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x414
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
test edi, edi
mov ebx, eax
jle 0x51e25611
lea eax, [edi + edi*4]
lea esi, [esi + eax*4 - 4]
push dword [esi]
call fcn.51e49344
sub esi, 0x14
dec edi
pop ecx
jne 0x51e25603
mov eax, ebx
jmp 0x51e03f5b
mov esi, dword [ebp + 0x14]
push 8
pop ecx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x20], 2
je 0x51e25640
mov eax, dword [ebp + 0x14]
push dword [eax + 0x18]
lea esi, [ebp - 0xc]
call fcn.51e49279
test eax, eax
pop ecx
je 0x51e259e7
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x10]
xor eax, eax
mov esi, 0x43f
cmp ebx, esi
setne al
add eax, 0x441
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp ebx, esi
mov dword [ebp - 4], eax
jne 0x51e2568f
test byte [ebp - 0x20], 2
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x18]
push 8
pop ecx
lea esi, [ebp - 0x24]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [edx + 0x18], eax
je 0x51e259e7
push eax
push dword [ebp - 0xc]
call fcn.51e747d8
test byte [ebp - 0x20], 2
je 0x51e259e7
push dword [ebp - 0xc]
jmp 0x51e259e1
mov ebx, dword [ebp + 0x14]
push 0x14
pop ecx
push dword [ebx + 0x14]
mov esi, ebx
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x40]
call fcn.51e49279
test eax, eax
pop ecx
je 0x51e259e7
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x10]
push 0x41d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [ebp - 4], eax
je 0x51e25703
test byte [ebp - 0x50], 4
mov eax, dword [ebx + 0x14]
push 0x14
pop ecx
lea esi, [ebp - 0x54]
mov edi, ebx
mov dword [ebp + 0x14], eax
rep movsd dword es:[edi], dword [esi]
je 0x51e256fd
push eax
push dword [ebp - 0x40]
call fcn.51e747d8
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x14], eax
push dword [ebp - 0x40]
jmp 0x51e259e1
cmp dword [ebp + 0x10], 0
jne 0x51e25748
mov esi, dword [ebp + 0x14]
mov ebx, esi
jmp 0x51e2573a
cmp word [esi], 0
je 0x51e2573e
push esi
call fcn.51e03933
push ebx
push esi
mov edi, eax
call fcn.51e747b7
lea ebx, [ebx + eax + 1]
lea esi, [esi + edi*2 + 2]
mov edx, 0x41c
test esi, esi
jne 0x51e25718
push dword [ebp + 0x14]
mov byte [ebx], 0
push 0
jmp 0x51e2574e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x51e03f5b
mov eax, ebx
sub eax, 0x104b
je 0x51e257d4
dec eax
je 0x51e257a2
dec eax
jne 0x51e252f5
mov eax, dword [ebp + 0x14]
push 0xa
pop ecx
push dword [eax + 0x14]
mov esi, eax
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x18]
call fcn.51e49279
test eax, eax
pop ecx
je 0x51e259e7
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
push 0x1007
jmp 0x51e259d2
mov eax, dword [ebp + 0x14]
push 0xa
pop ecx
mov esi, eax
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
push dword [eax + 0x14]
lea esi, [ebp - 0x18]
call fcn.51e49279
test eax, eax
pop ecx
je 0x51e259e7
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
push 0x1006
jmp 0x51e259d2
mov ebx, dword [ebp + 0x14]
push 0xa
pop ecx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
mov esi, ebx
push 0x1005
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [ebp - 0x2c], 1
push 0xa
pop ecx
lea esi, [ebp - 0x2c]
mov edi, ebx
mov dword [ebp - 4], eax
rep movsd dword es:[edi], dword [esi]
je 0x51e259e7
jmp 0x51e2599c
mov eax, dword [ebp + 0x14]
push 6
pop ecx
push dword [eax + 4]
mov esi, eax
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x18]
call fcn.51e49279
test eax, eax
pop ecx
je 0x51e259e7
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push 0x100d
jmp 0x51e259d2
mov eax, ebx
sub eax, 0x1061
je 0x51e259a9
sub eax, 0x12
je 0x51e2596d
dec eax
je 0x51e25945
dec eax
dec eax
je 0x51e25935
sub eax, 0x2c6
je 0x51e258b6
dec eax
dec eax
jne 0x51e252f5
mov eax, dword [ebp + 0x14]
push 7
pop ecx
push dword [eax + 0xc]
mov esi, eax
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x14]
call fcn.51e49279
test eax, eax
pop ecx
je 0x51e259e7
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
push 0x1307
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x14]
jmp 0x51e259de
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx + 0xc]
push 7
pop ecx
mov esi, ebx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x20], 1
mov dword [ebp + 0x14], eax
jne 0x51e258da
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebx + 0xc], eax
push dword [ebx + 0xc]
lea esi, [ebp - 0x14]
call fcn.51e49279
test eax, eax
pop ecx
je 0x51e2592a
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
push 0x1305
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [ebp - 4], eax
je 0x51e25921
test byte [ebp - 0x20], 1
push 7
pop ecx
lea esi, [ebp - 0x20]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
je 0x51e25921
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call fcn.51e747d8
push dword [ebp - 0x14]
call fcn.51e49344
pop ecx
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0xc], eax
jmp 0x51e259e7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x1017
jmp 0x51e2574f
mov eax, dword [ebp + 0x14]
push 0xa
pop ecx
mov esi, eax
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x51e257af
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
push 0x1006
jmp 0x51e2574f
mov ebx, dword [ebp + 0x14]
push 0xa
pop ecx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
mov esi, ebx
push 0x102d
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xa
pop ecx
lea esi, [ebp - 0x2c]
mov edi, ebx
mov dword [ebp - 4], eax
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x14]
push dword [ebp - 0x18]
call fcn.51e747d8
jmp 0x51e259e7
mov eax, dword [ebp + 0x14]
push 8
pop ecx
push dword [eax + 0xc]
mov esi, eax
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x18]
call fcn.51e49279
test eax, eax
pop ecx
je 0x51e259e7
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x10]
push 0x101b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
call fcn.51e49344
pop ecx
mov eax, dword [ebp - 4]
jmp 0x51e03f5b