Function at 0x549d90
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 [0x59c148], 0xffffffff
je 0x549dc4
mov esi, dword [0x5b430c]
test esi, esi
je 0x549dc4
cmp dword [esi], ebx
je 0x549dcd
mov esi, dword [esi + 0xd9c]
test esi, esi
jne 0x549db6
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 0x549e00
xor edi, edi
cmp eax, edi
je 0x549df4
push eax
call ebp
cmp eax, dword [0x5b4318]
jne 0x549df4
mov dword [0x59c148], edi
jmp 0x549e2d
mov dword [0x59c148], 1
jmp 0x549e2d
test eax, eax
je 0x549e1d
push eax
call ebp
cmp eax, dword [0x5b4318]
jne 0x549e1d
test edi, edi
je 0x549e25
mov eax, dword [esi]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
test edi, edi
je 0x54a57c
mov dword [0x59c148], edi
xor edi, edi
mov eax, bind
push ebx
mov dword [0x5b4140], eax
mov dword [0x5b4144], eax
mov dword [0x5b4138], eax
mov dword [0x5b413c], eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x549e62
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
mov dword [0x5b4334], edi
jne 0x549e6c
mov dword [0x5b4334], 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 [0x5b413c], eax
mov eax, dword [esp + 0x74]
sub eax, ecx
push ebx
mov dword [0x5b4138], ecx
mov dword [0x5b4144], edx
mov dword [0x5b4140], eax
call ebp
cmp eax, dword [0x5b4318]
je 0x549f14
mov ecx, dword [0x5b4138]
mov edx, dword [0x5b413c]
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.004e2580
push 1
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x28]
xor ecx, ecx
call fcn.004e2580
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
je 0x549f00
sub eax, ecx
add dword [0x5b4138], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
je 0x549f14
sub eax, ecx
add dword [0x5b413c], eax
mov eax, dword [0x5b413c]
mov edx, dword [0x5b4138]
mov dword [esp + 0x2c], eax
cmp dword [0x59c148], 1
mov dword [esp + 0x28], edx
jne 0x549f44
mov edx, dword [0x5b4318]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
jmp 0x549f56
mov ecx, dword [0x5b4318]
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 [0x59bd48]
mov dword [0x5b4138], edx
mov dword [0x5b413c], eax
mov dword [0x59bd48], edi
mov ecx, dword [esi + 0xbbc]
mov edx, dword [esi + 0x70c]
push ecx
push edi
push edx
mov edx, dword [esi + 0x708]
lea ecx, [esi + 8]
mov dword [esp + 0x2c], ebp
call fcn.00548f10
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x549fb6
mov edi, dword [0x5b430c]
test edi, edi
je 0x549fb6
cmp dword [edi], eax
je 0x549fd0
mov edi, dword [edi + 0xd9c]
test edi, edi
jne 0x549fa8
mov dword [0x59bd48], ebp
pop ebp
pop edi
pop esi
mov eax, ebx
mov dword [0x59c148], 0xffffffff
pop ebx
add esp, 0x6c
ret
mov dword [esi], eax
xor ebp, ebp
mov edx, eax
mov ecx, ebx
mov dword [edi + 0x708], 0xffffffff
mov dword [edi], ebp
mov dword [edi + 0xbbc], ebp
call fcn.004e3280
mov eax, dword [esi + 0x974]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [edi + 0x974]
lea eax, [edi + 0x978]
lea edx, [esi + 0x978]
mov dword [esi + 0x974], ecx
mov dword [edi + 0x974], ebp
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x54a020
mov edx, dword [edi + 0x9dc]
mov ebp, dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [esi + 0x9dc], edx
mov eax, dword [edi + 0x9e0]
mov dword [esi + 0x9e0], eax
mov ecx, dword [edi + 0x9e8]
mov dword [esi + 0x9e8], ecx
mov edx, dword [edi + 0x9ec]
mov dword [esi + 0x9ec], edx
mov eax, dword [edi + 0x758]
mov dword [esi + 0x758], eax
mov eax, dword [esi + 0x874]
xor ebx, ebx
cmp eax, ebx
je 0x54a088
mov ecx, dword [esi + 0x88c]
cmp ecx, ebx
je 0x54a088
push ecx
push 0xfffffffffffffffc
push eax
call ebp
mov ecx, dword [edi + 0x88c]
mov dword [esi + 0x88c], ecx
mov dword [edi + 0x88c], ebx
mov eax, dword [esi + 0x86c]
cmp eax, ebx
je 0x54a0b4
mov ecx, dword [esi + 0x884]
cmp ecx, ebx
je 0x54a0b4
push ecx
push 0xfffffffffffffffc
push eax
call ebp
mov edx, dword [edi + 0x884]
mov dword [esi + 0x884], edx
mov dword [edi + 0x884], ebx
mov eax, dword [esi + 0x870]
cmp eax, ebx
je 0x54a0e0
mov ecx, dword [esi + 0x888]
cmp ecx, ebx
je 0x54a0e0
push ecx
push 0xfffffffffffffffc
push eax
call ebp
mov eax, dword [edi + 0x888]
mov dword [esi + 0x888], eax
mov dword [edi + 0x888], ebx
mov eax, dword [esi + 0x864]
cmp eax, ebx
je 0x54a10c
mov ecx, dword [esi + 0x880]
cmp ecx, ebx
je 0x54a10c
push ecx
push 0xfffffffffffffffc
push eax
call ebp
mov ecx, dword [edi + 0x880]
mov dword [esi + 0x880], ecx
mov ecx, dword [edi + 0x864]
xor eax, eax
mov dword [edi + 0x880], eax
mov edx, dword [esi + 0x874]
mov ebp, dword [esi + 0x86c]
mov ebx, dword [esi + 0x870]
mov dword [esi + 0x864], ecx
mov dword [esp + 0x1c], edx
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 + 0x874]
mov dword [esi + 0x874], ecx
mov edx, dword [edi + 0x878]
mov dword [esi + 0x878], edx
mov ecx, dword [edi + 0x894]
mov dword [esi + 0x894], ecx
mov edx, dword [edi + 0x898]
mov dword [esi + 0x898], edx
mov ecx, dword [edi + 0x89c]
mov dword [esi + 0x89c], ecx
mov edx, dword [edi + 0x8a0]
mov ecx, edi
mov dword [esi + 0x8a0], edx
mov dword [esi + 0x890], eax
call fcn.00542a40
mov eax, dword [esp + 0x14]
push 0x3b5
push 0x5aa640
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 0x10]
push 0x5aa640
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, esi
call fcn.005475d0
mov eax, dword [esi + 0x708]
test eax, eax
jne 0x54a202
mov edx, dword [0x59c148]
mov dword [0x59c004], edx
jmp 0x54a294
cmp eax, 2
jne 0x54a21b
cmp dword [esi + 0x70c], eax
jne 0x54a21b
mov eax, dword [0x59c148]
mov dword [0x59c00c], eax
jmp 0x54a294
cmp eax, 4
jne 0x54a22e
mov ecx, dword [0x59c148]
mov dword [0x59c024], ecx
jmp 0x54a294
cmp eax, 5
jne 0x54a24b
mov edi, dword [esp + 0x10]
mov edx, dword [0x59c148]
mov dword [0x5b432c], edi
mov dword [0x59c018], edx
jmp 0x54a298
cmp eax, 6
jne 0x54a266
mov edi, dword [esp + 0x10]
mov eax, dword [0x59c148]
mov dword [0x5b4324], edi
mov dword [0x59c020], eax
jmp 0x54a298
cmp eax, 7
jne 0x54a283
mov edi, dword [esp + 0x10]
mov ecx, dword [0x59c148]
mov dword [0x5b4328], edi
mov dword [0x59c01c], ecx
jmp 0x54a298
cmp eax, 8
jne 0x54a294
mov edx, dword [0x59c148]
mov dword [0x59c028], edx
mov edi, dword [esp + 0x10]
cmp dword [esi + 0x708], 3
jne 0x54a2e7
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x5aa640
push 0x3e7
push 0xd
push 0x76
push eax
call edi
mov al, byte [0x5aa640]
test al, al
je 0x54a2da
mov ecx, dword [esp + 0x10]
push 0x5aa640
push 0x3e7
push 0xc
push 0x76
push ecx
call edi
mov ecx, dword [esp + 0x10]
call fcn.00536230
mov edi, dword [esp + 0x10]
test ebp, ebp
je 0x54a350
push 0x5aa640
push 0x3e7
push 0xd
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, byte [0x5aa640]
test al, al
je 0x54a350
mov edx, dword [esi + 0x86c]
push 0x5aa640
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.00477a90
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x86c]
push edx
push eax
mov edx, 1
call fcn.004779b0
test ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
je 0x54a3b7
push 0x5aa640
push 0x3e7
push 0xd
push ebx
call ebp
mov al, byte [0x5aa640]
test al, al
je 0x54a3b7
mov ecx, dword [esi + 0x870]
push 0x5aa640
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.00477a90
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x870]
push edx
mov edx, 1
call fcn.004779b0
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x54a3c6
mov ecx, esi
call fcn.00549b90
mov ecx, dword [0x5ab6c4]
test ecx, ecx
mov edx, dword [esp + 0x14]
je 0x54a41c
mov eax, dword [ecx + 0x1718]
test eax, eax
je 0x54a3f8
mov edi, edi
cmp dword [eax + 0x310], edx
jne 0x54a3ee
mov dword [eax + 0x310], edi
mov eax, dword [eax + 0x428]
test eax, eax
jne 0x54a3e0
mov eax, dword [ecx + 0x217c]
test eax, eax
je 0x54a412
cmp dword [eax], edx
jne 0x54a408
mov dword [eax], edi
mov eax, dword [eax + 0x264]
test eax, eax
jne 0x54a402
mov ecx, dword [ecx + 0x2424]
test ecx, ecx
jne 0x54a3d4
mov eax, dword [0x5b2f74]
test eax, eax
je 0x54a43d
cmp dword [eax + 0x90], edx
jne 0x54a433
mov dword [eax + 0x90], edi
mov eax, dword [eax + 0x494]
test eax, eax
jne 0x54a425
mov eax, dword [0x5a8ba4]
test eax, eax
je 0x54a458
cmp dword [eax], edx
je 0x54a456
mov eax, dword [eax + 0x4bc]
test eax, eax
jne 0x54a446
jmp 0x54a458
mov dword [eax], edi
mov eax, dword [0x5afc18]
test eax, eax
je 0x54a473
cmp dword [eax], edx
je 0x54a471
mov eax, dword [eax + 0x3cc]
test eax, eax
jne 0x54a461
jmp 0x54a473
mov dword [eax], edi
mov eax, dword [0x5a3a48]
test eax, eax
je 0x54a492
lea esp, [esp]
cmp dword [eax], edx
je 0x54a490
mov eax, dword [eax + 0x88c]
test eax, eax
jne 0x54a480
jmp 0x54a492
mov dword [eax], edi
mov eax, dword [0x5a7184]
test eax, eax
je 0x54a4b8
jmp 0x54a4a0
cmp dword [eax + 0x134], edx
jne 0x54a4ae
mov dword [eax + 0x134], edi
mov eax, dword [eax + 0x544]
test eax, eax
jne 0x54a4a0
mov eax, dword [0x5a8b70]
test eax, eax
je 0x54a4d1
cmp dword [eax], edx
jne 0x54a4c7
mov dword [eax], edi
mov eax, dword [eax + 0x218]
test eax, eax
jne 0x54a4c1
push 0
push 0
push 0x10
push edx
call ebp
mov eax, dword [esi + 0x86c]
test eax, eax
je 0x54a4f0
mov edx, 2
mov ecx, esi
call fcn.00546d30
cmp dword [esi + 0x708], 3
jne 0x54a51e
cmp dword [esi + 0x70c], 1
mov ecx, dword [esi]
jne 0x54a512
call fcn.00514aa0
mov ecx, eax
call fcn.00534430
jmp 0x54a51e
call fcn.0048f6b0
mov ecx, eax
call fcn.00534510
mov edx, 0x80b8
mov ecx, edi
call fcn.00544ed0
mov edx, 1
mov ecx, esi
call fcn.00542fd0
mov eax, dword [esp + 0x20]
mov dword [0x59bd48], eax
mov eax, dword [0x59c148]
test eax, eax
mov dword [0x59c148], 0xffffffff
je 0x54a56c
mov ecx, dword [0x5b4314]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov edx, dword [0x5b4314]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor edx, edx
mov ecx, esi
call fcn.00546820
xor ecx, ecx
call fcn.00527d80
mov eax, dword [esi]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret