Function at 0x53d680
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x6c
push ebx
mov ebx, ecx
test ebx, ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x10], ebx
mov dword [0x589fd0], 0xffffffff
je 0x53d6b4
mov esi, dword [0x5a1af8]
test esi, esi
je 0x53d6b4
cmp dword [esi], ebx
je 0x53d6bd
mov esi, dword [esi + 0xd84]
test esi, esi
jne 0x53d6a6
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x6c
ret
cmp edi, 0xffffffff
mov eax, dword [esi]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetParent]
jne 0x53d6f0
xor edi, edi
cmp eax, edi
je 0x53d6e4
push eax
call ebp
cmp eax, dword [0x5a1b04]
jne 0x53d6e4
mov dword [0x589fd0], edi
jmp 0x53d71d
mov dword [0x589fd0], 1
jmp 0x53d71d
test eax, eax
je 0x53d70d
push eax
call ebp
cmp eax, dword [0x5a1b04]
jne 0x53d70d
test edi, edi
je 0x53d715
mov eax, dword [esi]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
test edi, edi
je 0x53de6c
mov dword [0x589fd0], edi
xor edi, edi
mov eax, bind
push ebx
mov dword [0x5a1930], eax
mov dword [0x5a1934], eax
mov dword [0x5a1928], eax
mov dword [0x5a192c], eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x53d752
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
mov dword [0x5a1b20], edi
jne 0x53d75c
mov dword [0x5a1b20], 0x20000000
lea eax, [esp + 0x50]
push eax
push ebx
mov dword [esp + 0x58], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x6c]
sub edx, eax
mov dword [0x5a192c], eax
mov eax, dword [esp + 0x74]
sub eax, ecx
push ebx
mov dword [0x5a1928], ecx
mov dword [0x5a1934], edx
mov dword [0x5a1930], eax
call ebp
cmp eax, dword [0x5a1b04]
je 0x53d804
mov ecx, dword [0x5a1928]
mov edx, dword [0x5a192c]
push edi
lea eax, [esp + 0x34]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
push eax
lea edx, [esp + 0x28]
xor ecx, ecx
call fcn.004dbcc0
push 1
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x28]
xor ecx, ecx
call fcn.004dbcc0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
je 0x53d7f0
sub eax, ecx
add dword [0x5a1928], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
je 0x53d804
sub eax, ecx
add dword [0x5a192c], eax
mov eax, dword [0x5a192c]
mov edx, dword [0x5a1928]
mov dword [esp + 0x2c], eax
cmp dword [0x589fd0], 1
mov dword [esp + 0x28], edx
jne 0x53d834
mov edx, dword [0x5a1b04]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
jmp 0x53d846
mov ecx, dword [0x5a1b04]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ebp, dword [0x589bd0]
mov dword [0x5a1928], edx
mov dword [0x5a192c], eax
mov dword [0x589bd0], edi
mov ecx, dword [esi + 0xbb4]
mov edx, dword [esi + 0x704]
push ecx
push edi
push edx
mov edx, dword [esi + 0x700]
lea ecx, [esi + 8]
mov dword [esp + 0x2c], ebp
call fcn.0053c810
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x53d8a6
mov edi, dword [0x5a1af8]
test edi, edi
je 0x53d8a6
cmp dword [edi], eax
je 0x53d8c0
mov edi, dword [edi + 0xd84]
test edi, edi
jne 0x53d898
mov dword [0x589bd0], ebp
pop ebp
pop edi
pop esi
mov eax, ebx
mov dword [0x589fd0], 0xffffffff
pop ebx
add esp, 0x6c
ret
mov dword [esi], eax
xor ebp, ebp
mov edx, eax
mov ecx, ebx
mov dword [edi + 0x700], 0xffffffff
mov dword [edi], ebp
mov dword [edi + 0xbb4], ebp
call fcn.004dc9c0
mov eax, dword [esi + 0x96c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [edi + 0x96c]
lea eax, [edi + 0x970]
lea edx, [esi + 0x970]
mov dword [esi + 0x96c], ecx
mov dword [edi + 0x96c], ebp
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x53d910
mov edx, dword [edi + 0x9d4]
mov ebp, dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [esi + 0x9d4], edx
mov eax, dword [edi + 0x9d8]
mov dword [esi + 0x9d8], eax
mov ecx, dword [edi + 0x9e0]
mov dword [esi + 0x9e0], ecx
mov edx, dword [edi + 0x9e4]
mov dword [esi + 0x9e4], edx
mov eax, dword [edi + 0x750]
mov dword [esi + 0x750], eax
mov eax, dword [esi + 0x86c]
xor ebx, ebx
cmp eax, ebx
je 0x53d978
mov ecx, dword [esi + 0x884]
cmp ecx, ebx
je 0x53d978
push ecx
push 0xfffffffffffffffc
push eax
call ebp
mov ecx, dword [edi + 0x884]
mov dword [esi + 0x884], ecx
mov dword [edi + 0x884], ebx
mov eax, dword [esi + 0x864]
cmp eax, ebx
je 0x53d9a4
mov ecx, dword [esi + 0x87c]
cmp ecx, ebx
je 0x53d9a4
push ecx
push 0xfffffffffffffffc
push eax
call ebp
mov edx, dword [edi + 0x87c]
mov dword [esi + 0x87c], edx
mov dword [edi + 0x87c], ebx
mov eax, dword [esi + 0x868]
cmp eax, ebx
je 0x53d9d0
mov ecx, dword [esi + 0x880]
cmp ecx, ebx
je 0x53d9d0
push ecx
push 0xfffffffffffffffc
push eax
call ebp
mov eax, dword [edi + 0x880]
mov dword [esi + 0x880], eax
mov dword [edi + 0x880], ebx
mov eax, dword [esi + 0x85c]
cmp eax, ebx
je 0x53d9fc
mov ecx, dword [esi + 0x878]
cmp ecx, ebx
je 0x53d9fc
push ecx
push 0xfffffffffffffffc
push eax
call ebp
mov ecx, dword [edi + 0x878]
mov dword [esi + 0x878], ecx
mov ecx, dword [edi + 0x85c]
xor eax, eax
mov dword [edi + 0x878], eax
mov edx, dword [esi + 0x86c]
mov ebp, dword [esi + 0x864]
mov ebx, dword [esi + 0x868]
mov dword [esi + 0x85c], ecx
mov dword [esp + 0x1c], edx
mov edx, dword [edi + 0x860]
mov dword [esi + 0x860], edx
mov ecx, dword [edi + 0x864]
mov dword [esi + 0x864], ecx
mov edx, dword [edi + 0x868]
mov dword [esi + 0x868], edx
mov ecx, dword [edi + 0x86c]
mov dword [esi + 0x86c], ecx
mov edx, dword [edi + 0x870]
mov dword [esi + 0x870], edx
mov ecx, dword [edi + 0x88c]
mov dword [esi + 0x88c], ecx
mov edx, dword [edi + 0x890]
mov dword [esi + 0x890], edx
mov ecx, dword [edi + 0x894]
mov dword [esi + 0x894], ecx
mov edx, dword [edi + 0x898]
mov ecx, edi
mov dword [esi + 0x898], edx
mov dword [esi + 0x888], eax
call fcn.00536470
mov eax, dword [esp + 0x14]
push 0x3b5
push 0x5990e0
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 0x10]
push 0x5990e0
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, esi
call fcn.0053af20
mov eax, dword [esi + 0x700]
test eax, eax
jne 0x53daf2
mov edx, dword [0x589fd0]
mov dword [0x589e8c], edx
jmp 0x53db84
cmp eax, 2
jne 0x53db0b
cmp dword [esi + 0x704], eax
jne 0x53db0b
mov eax, dword [0x589fd0]
mov dword [0x589e94], eax
jmp 0x53db84
cmp eax, 4
jne 0x53db1e
mov ecx, dword [0x589fd0]
mov dword [0x589eac], ecx
jmp 0x53db84
cmp eax, 5
jne 0x53db3b
mov edi, dword [esp + 0x10]
mov edx, dword [0x589fd0]
mov dword [0x5a1b18], edi
mov dword [0x589ea0], edx
jmp 0x53db88
cmp eax, 6
jne 0x53db56
mov edi, dword [esp + 0x10]
mov eax, dword [0x589fd0]
mov dword [0x5a1b10], edi
mov dword [0x589ea8], eax
jmp 0x53db88
cmp eax, 7
jne 0x53db73
mov edi, dword [esp + 0x10]
mov ecx, dword [0x589fd0]
mov dword [0x5a1b14], edi
mov dword [0x589ea4], ecx
jmp 0x53db88
cmp eax, 8
jne 0x53db84
mov edx, dword [0x589fd0]
mov dword [0x589eb0], edx
mov edi, dword [esp + 0x10]
cmp dword [esi + 0x700], 3
jne 0x53dbd7
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x5990e0
push 0x3e7
push 0xd
push 0x76
push eax
call edi
mov al, byte [0x5990e0]
test al, al
je 0x53dbca
mov ecx, dword [esp + 0x10]
push 0x5990e0
push 0x3e7
push 0xc
push 0x76
push ecx
call edi
mov ecx, dword [esp + 0x10]
call fcn.00529b60
mov edi, dword [esp + 0x10]
test ebp, ebp
je 0x53dc40
push 0x5990e0
push 0x3e7
push 0xd
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, byte [0x5990e0]
test al, al
je 0x53dc40
mov edx, dword [esi + 0x864]
push 0x5990e0
push 0x3e7
push 0xc
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edx, 1
mov ecx, ebp
call fcn.004743d0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x864]
push edx
push eax
mov edx, 1
call fcn.004742f0
test ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
je 0x53dca7
push 0x5990e0
push 0x3e7
push 0xd
push ebx
call ebp
mov al, byte [0x5990e0]
test al, al
je 0x53dca7
mov ecx, dword [esi + 0x868]
push 0x5990e0
push 0x3e7
push 0xc
push ecx
call ebp
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
mov edx, 1
mov ecx, ebx
call fcn.004743d0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x868]
push edx
mov edx, 1
call fcn.004742f0
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x53dcb6
mov ecx, esi
call fcn.0053d480
mov ecx, dword [0x59a15c]
test ecx, ecx
mov edx, dword [esp + 0x14]
je 0x53dd0c
mov eax, dword [ecx + 0x1654]
test eax, eax
je 0x53dce8
mov edi, edi
cmp dword [eax + 0x310], edx
jne 0x53dcde
mov dword [eax + 0x310], edi
mov eax, dword [eax + 0x428]
test eax, eax
jne 0x53dcd0
mov eax, dword [ecx + 0x203c]
test eax, eax
je 0x53dd02
cmp dword [eax], edx
jne 0x53dcf8
mov dword [eax], edi
mov eax, dword [eax + 0x264]
test eax, eax
jne 0x53dcf2
mov ecx, dword [ecx + 0x22dc]
test ecx, ecx
jne 0x53dcc4
mov eax, dword [0x5a0d2c]
test eax, eax
je 0x53dd2d
cmp dword [eax + 0x90], edx
jne 0x53dd23
mov dword [eax + 0x90], edi
mov eax, dword [eax + 0x494]
test eax, eax
jne 0x53dd15
mov eax, dword [0x597650]
test eax, eax
je 0x53dd48
cmp dword [eax], edx
je 0x53dd46
mov eax, dword [eax + 0x4bc]
test eax, eax
jne 0x53dd36
jmp 0x53dd48
mov dword [eax], edi
mov eax, dword [0x59e068]
test eax, eax
je 0x53dd63
cmp dword [eax], edx
je 0x53dd61
mov eax, dword [eax + 0x3cc]
test eax, eax
jne 0x53dd51
jmp 0x53dd63
mov dword [eax], edi
mov eax, dword [0x592640]
test eax, eax
je 0x53dd82
lea esp, [esp]
cmp dword [eax], edx
je 0x53dd80
mov eax, dword [eax + 0x88c]
test eax, eax
jne 0x53dd70
jmp 0x53dd82
mov dword [eax], edi
mov eax, dword [0x595ca4]
test eax, eax
je 0x53dda8
jmp 0x53dd90
cmp dword [eax + 0x134], edx
jne 0x53dd9e
mov dword [eax + 0x134], edi
mov eax, dword [eax + 0x544]
test eax, eax
jne 0x53dd90
mov eax, dword [0x597628]
test eax, eax
je 0x53ddc1
cmp dword [eax], edx
jne 0x53ddb7
mov dword [eax], edi
mov eax, dword [eax + 0x218]
test eax, eax
jne 0x53ddb1
push 0
push 0
push 0x10
push edx
call ebp
mov eax, dword [esi + 0x864]
test eax, eax
je 0x53dde0
mov edx, 2
mov ecx, esi
call fcn.0053a740
cmp dword [esi + 0x700], 3
jne 0x53de0e
cmp dword [esi + 0x704], 1
mov ecx, dword [esi]
jne 0x53de02
call fcn.0050d190
mov ecx, eax
call fcn.00527db0
jmp 0x53de0e
call fcn.0048a790
mov ecx, eax
call fcn.00527e90
mov edx, 0x80b8
mov ecx, edi
call fcn.00538900
mov edx, 1
mov ecx, esi
call fcn.00536a00
mov eax, dword [esp + 0x20]
mov dword [0x589bd0], eax
mov eax, dword [0x589fd0]
test eax, eax
mov dword [0x589fd0], 0xffffffff
je 0x53de5c
mov ecx, dword [0x5a1b00]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov edx, dword [0x5a1b00]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor edx, edx
mov ecx, esi
call fcn.0053a230
xor ecx, ecx
call fcn.0051c6d0
mov eax, dword [esi]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret