Function at 0x5972a0
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x31b0
call fcn.005d9990
mov eax, dword [esp + 0x31b4]
test eax, eax
push ebp
mov dword [0x61c75c], 0xffffffff
je 0x597d1c
mov ebp, dword [0x6a0f38]
test ebp, ebp
je 0x597d1c
cmp dword [ebp], eax
je 0x5972e9
mov ebp, dword [ebp + 0x21c0]
test ebp, ebp
jne 0x5972d2
pop ebp
add esp, 0x31b0
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push esi
mov esi, dword [ebp]
push edi
mov edi, dword [esp + 0x31c8]
cmp edi, 0xffffffff
jne 0x597326
test esi, esi
je 0x59731f
push esi
call ebx
test eax, eax
je 0x59731f
push esi
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [0x6a0f44]
jne 0x59731f
xor eax, eax
jmp 0x59735c
mov eax, 1
jmp 0x59735c
test esi, esi
je 0x597352
push esi
call ebx
test eax, eax
je 0x597352
push esi
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [0x6a0f44]
jne 0x597352
test edi, edi
je 0x59735a
mov eax, dword [ebp]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x31b0
ret
test edi, edi
je 0x597d16
mov eax, edi
mov ecx, dword [0x676e80]
test ecx, ecx
mov dword [0x61c75c], eax
je 0x597387
test eax, eax
je 0x597387
pop edi
pop esi
mov dword [0x61c75c], 0xffffffff
mov eax, dword [ebp]
pop ebx
pop ebp
add esp, 0x31b0
ret
push 0
push ebp
call fcn.004826b0
mov esi, dword [esp + 0x31cc]
mov eax, accept
add esp, 8
push esi
mov dword [0x6a0f6c], eax
mov dword [0x6a0f70], eax
mov dword [0x6a0f64], eax
mov dword [0x6a0f68], eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x5973d2
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
mov dword [0x6a0f60], 0
jne 0x5973dc
mov dword [0x6a0f60], 0x20000000
xor eax, eax
mov ecx, 0xb
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
push eax
push esi
mov dword [esp + 0x64], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x78]
sub edx, eax
mov dword [0x6a0f68], eax
mov eax, dword [esp + 0x80]
sub eax, ecx
push esi
mov dword [0x6a0f64], ecx
mov dword [0x6a0f70], edx
mov dword [0x6a0f6c], eax
call ebx
test eax, eax
je 0x597443
push esi
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [0x6a0f44]
je 0x59749b
mov ecx, dword [0x6a0f64]
mov edx, dword [0x6a0f68]
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], edx
push ecx
lea edx, [esp + 0x38]
push edx
xor esi, esi
push esi
call fcn.00508880
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
add esp, 0x10
cmp eax, ecx
je 0x597485
sub eax, ecx
add dword [0x6a0f64], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
je 0x59749d
sub eax, ecx
add dword [0x6a0f68], eax
jmp 0x59749d
xor esi, esi
mov eax, dword [0x6a0f64]
mov ecx, dword [0x6a0f68]
mov dword [esp + 0x14], eax
mov eax, dword [0x61c75c]
mov edi, 1
cmp eax, edi
mov dword [esp + 0x18], ecx
jne 0x5974d1
mov eax, dword [0x6a0f44]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
jmp 0x5974e3
mov edx, dword [0x6a0f44]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10f0]
push 0x1068
push edx
mov dword [0x6a0f64], eax
mov dword [0x6a0f68], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.004232e0
mov eax, dword [ebp + 0x1480]
add esp, 8
cmp eax, esi
je 0x597557
mov edx, dword [ebp + 0x14ac]
push 0x1036
lea ecx, [esp + 0x10f4]
push ecx
push edx
push eax
call fcn.00489cd0
mov edx, dword [ebp + 0x14ac]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebp + 0x1480]
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
call fcn.00489f80
add esp, 0x20
lea ecx, [esp + 0x2158]
push 0x1068
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], esi
call fcn.004232e0
mov eax, dword [ebp + 0x1484]
add esp, 8
cmp eax, esi
je 0x5975b8
mov ecx, dword [ebp + 0x14ac]
push 0x1036
lea edx, [esp + 0x215c]
push edx
push ecx
push eax
call fcn.00489cd0
mov ecx, dword [ebp + 0x14ac]
lea edx, [esp + 0x30]
push edx
mov edx, dword [ebp + 0x1484]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call fcn.00489f80
add esp, 0x20
mov eax, dword [0x61a9ec]
mov ecx, dword [0x61af40]
mov dword [0x61a9ec], esi
mov dword [0x61af40], esi
mov dword [esp + 0x1c], eax
mov dword [ebp + 0x217c], edi
cmp dword [0x676e80], esi
mov dword [esp + 0x24], ecx
je 0x5975eb
mov dword [ebp + 0x217c], esi
cmp dword [ebp + 0x1314], 9
jne 0x59767d
mov ebx, dword [0x61c75c]
xor eax, eax
xor edx, edx
cmp ebx, eax
sete dl
lea esi, [ebp + 0x1ea8]
mov ecx, 0x9e
mov edi, 0x6a0cc0
rep movsd dword es:[edi], dword [esi]
mov dword [0x6a0cd0], edx
mov esi, 1
mov dword [0x6a0d34], esi
mov ecx, dword [ebp + 0x18d8]
mov dword [0x6a0ce8], ecx
mov dword [0x6a0ce4], eax
mov dword [0x6a0ce0], eax
mov dword [0x6a0d14], eax
mov edx, dword [ebp]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x597677
mov eax, dword [ebp]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x597677
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x59767d
mov dword [0x6a0ce4], esi
jmp 0x59767d
mov dword [0x6a0ce0], esi
mov edx, dword [ebp + 0x1e90]
mov eax, dword [ebp + 0x1318]
mov ecx, dword [ebp + 0x1314]
xor edi, edi
push edi
push edx
push edi
push eax
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00596330
mov ebx, eax
add esp, 0x18
cmp ebx, edi
je 0x5976c0
mov esi, dword [0x6a0f38]
cmp esi, edi
je 0x5976c0
cmp dword [esi], ebx
je 0x5976ef
mov esi, dword [esi + 0x21c0]
cmp esi, edi
jne 0x5976b2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword [0x61a9ec], eax
mov eax, dword [esp + 0x31b8]
mov dword [0x61c75c], 0xffffffff
mov dword [0x61af40], ecx
pop ebp
add esp, 0x31b0
ret
mov edx, dword [esp + 0x31c4]
mov dword [ebp], ebx
push ebx
push edx
mov dword [esi + 0x1314], 0xffffffff
mov dword [esi], edi
mov dword [esi + 0x1e90], edi
call fcn.00509600
mov eax, dword [ebp + 0x1754]
add esp, 8
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esi + 0x1754]
lea eax, [esi + 0x1758]
lea edx, [ebp + 0x1758]
mov dword [ebp + 0x1754], ecx
mov dword [esi + 0x1754], edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x597742
mov edx, dword [esi + 0x188c]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [ebp + 0x188c], edx
mov eax, dword [esi + 0x1890]
mov dword [ebp + 0x1890], eax
mov ecx, dword [esi + 0x1898]
mov dword [ebp + 0x1898], ecx
mov edx, dword [esi + 0x189c]
mov dword [ebp + 0x189c], edx
mov eax, dword [esi + 0x1360]
mov dword [ebp + 0x1360], eax
mov eax, dword [ebp + 0x1488]
test eax, eax
je 0x5977a8
mov ecx, dword [ebp + 0x149c]
test ecx, ecx
je 0x5977a8
push ecx
push 0xfffffffffffffffc
push eax
call edi
mov ecx, dword [esi + 0x149c]
mov dword [ebp + 0x149c], ecx
mov dword [esi + 0x149c], 0
mov eax, dword [ebp + 0x1480]
test eax, eax
je 0x5977d8
mov ecx, dword [ebp + 0x1494]
test ecx, ecx
je 0x5977d8
push ecx
push 0xfffffffffffffffc
push eax
call edi
mov edx, dword [esi + 0x1494]
mov dword [ebp + 0x1494], edx
mov dword [esi + 0x1494], 0
mov eax, dword [ebp + 0x1484]
test eax, eax
je 0x597808
mov ecx, dword [ebp + 0x1498]
test ecx, ecx
je 0x597808
push ecx
push 0xfffffffffffffffc
push eax
call edi
mov eax, dword [esi + 0x1498]
mov dword [ebp + 0x1498], eax
mov dword [esi + 0x1498], 0
mov eax, dword [ebp + 0x1478]
test eax, eax
je 0x597838
mov ecx, dword [ebp + 0x1490]
test ecx, ecx
je 0x597838
push ecx
push 0xfffffffffffffffc
push eax
call edi
mov ecx, dword [esi + 0x1490]
mov dword [ebp + 0x1490], ecx
xor eax, eax
mov dword [esi + 0x1490], eax
mov edx, dword [ebp + 0x1480]
mov ecx, dword [ebp + 0x1484]
mov edi, dword [ebp + 0x1488]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0x1478]
mov dword [ebp + 0x1478], edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x147c]
mov dword [ebp + 0x147c], ecx
mov edx, dword [esi + 0x1480]
mov dword [ebp + 0x1480], edx
mov ecx, dword [esi + 0x1484]
mov dword [ebp + 0x1484], ecx
mov edx, dword [esi + 0x1488]
mov dword [ebp + 0x1488], edx
mov ecx, dword [esi + 0x14a4]
mov dword [ebp + 0x14a4], ecx
mov edx, dword [esi + 0x14a8]
mov dword [ebp + 0x14a8], edx
mov ecx, dword [esi + 0x14ac]
mov dword [ebp + 0x14ac], ecx
mov edx, dword [esi + 0x14b0]
push esi
mov dword [ebp + 0x14b0], edx
mov dword [ebp + 0x14a0], eax
call fcn.0058e780
push ebp
call fcn.005944c0
lea eax, [esp + 0x90]
push 0x1068
push eax
call fcn.004232e0
mov edx, dword [esp + 0x31d4]
add esp, 0x10
push 0x1036
lea ecx, [esp + 0x8c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x88]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp + 0x1314]
test eax, eax
jne 0x59793e
mov ecx, dword [0x61c75c]
mov dword [0x61b620], ecx
jmp 0x5979c4
cmp eax, 2
jne 0x597959
cmp dword [ebp + 0x1318], eax
jne 0x597959
mov edx, dword [0x61c75c]
mov dword [0x61b628], edx
jmp 0x5979c4
cmp eax, 4
jne 0x59796a
mov eax, dword [0x61c75c]
mov dword [0x61b640], eax
jmp 0x5979c4
cmp eax, 5
jne 0x597983
mov ecx, dword [0x61c75c]
mov dword [0x6a0f58], ebx
mov dword [0x61b634], ecx
jmp 0x5979c4
cmp eax, 6
jne 0x59799c
mov edx, dword [0x61c75c]
mov dword [0x6a0f50], ebx
mov dword [0x61b63c], edx
jmp 0x5979c4
cmp eax, 7
jne 0x5979b3
mov eax, dword [0x61c75c]
mov dword [0x6a0f54], ebx
mov dword [0x61b638], eax
jmp 0x5979c4
cmp eax, 8
jne 0x5979c4
mov ecx, dword [0x61c75c]
mov dword [0x61b644], ecx
cmp dword [ebp + 0x1314], 3
jne 0x597a39
lea edx, [esp + 0x88]
push 0x1068
push edx
call fcn.004232e0
add esp, 8
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x8c]
push 0x1068
push ecx
call fcn.00423310
mov edx, dword [esp + 0x31d0]
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
add esp, 8
push eax
push 0xd
push 0x76
push edx
call esi
mov al, byte [esp + 0x88]
test al, al
je 0x597a30
lea eax, [esp + 0x88]
push eax
push 0
push 0xc
push 0x76
push ebx
call esi
push ebx
call fcn.00571100
add esp, 4
test edi, edi
je 0x597a47
push edi
push ebp
call fcn.0058f820
add esp, 8
mov ecx, dword [0x67b0c8]
test ecx, ecx
mov edx, dword [esp + 0x31c4]
je 0x597aac
jmp 0x597a60
mov eax, dword [ecx + 0x4a08]
test eax, eax
je 0x597a88
lea ebx, [ebx]
cmp dword [eax + 0x69c], edx
jne 0x597a7e
mov dword [eax + 0x69c], ebx
mov eax, dword [eax + 0x7e4]
test eax, eax
jne 0x597a70
mov eax, dword [ecx + 0x7428]
test eax, eax
je 0x597aa2
cmp dword [eax], edx
jne 0x597a98
mov dword [eax], ebx
mov eax, dword [eax + 0x800]
test eax, eax
jne 0x597a92
mov ecx, dword [ecx + 0x819c]
test ecx, ecx
jne 0x597a60
mov eax, dword [0x69692c]
test eax, eax
je 0x597acd
cmp dword [eax + 0x160], edx
jne 0x597ac3
mov dword [eax + 0x160], ebx
mov eax, dword [eax + 0x11e4]
test eax, eax
jne 0x597ab5
mov eax, dword [0x6696c8]
test eax, eax
je 0x597ae8
cmp dword [eax], edx
je 0x597ae6
mov eax, dword [eax + 0x1128]
test eax, eax
jne 0x597ad6
jmp 0x597ae8
mov dword [eax], ebx
mov eax, dword [0x68d418]
test eax, eax
je 0x597b03
cmp dword [eax], edx
je 0x597b01
mov eax, dword [eax + 0xd1c]
test eax, eax
jne 0x597af1
jmp 0x597b03
mov dword [eax], ebx
mov eax, dword [0x634560]
test eax, eax
je 0x597b22
lea esp, [esp]
cmp dword [eax], edx
je 0x597b20
mov eax, dword [eax + 0x2104]
test eax, eax
jne 0x597b10
jmp 0x597b22
mov dword [eax], ebx
mov eax, dword [0x642fa4]
test eax, eax
je 0x597b48
jmp 0x597b30
cmp dword [eax + 0x3a0], edx
jne 0x597b3e
mov dword [eax + 0x3a0], ebx
mov eax, dword [eax + 0x7b0]
test eax, eax
jne 0x597b30
mov eax, dword [0x649050]
test eax, eax
je 0x597b61
cmp dword [eax], edx
jne 0x597b57
mov dword [eax], ebx
mov eax, dword [eax + 0x578]
test eax, eax
jne 0x597b51
mov eax, dword [0x642f9c]
test eax, eax
je 0x597b88
lea ebx, [ebx]
cmp dword [eax + 0x58c], edx
jne 0x597b7e
mov dword [eax + 0x58c], ebx
mov eax, dword [eax + 0x27a0]
test eax, eax
jne 0x597b70
mov eax, dword [0x63ce34]
test eax, eax
je 0x597ba9
cmp dword [eax + 0x264], edx
jne 0x597b9f
mov dword [eax + 0x264], ebx
mov eax, dword [eax + 0x4818]
test eax, eax
jne 0x597b91
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0x1480]
test eax, eax
je 0x597bcb
push 2
push ebp
call fcn.00593aa0
add esp, 8
cmp dword [ebp + 0x1314], 3
jne 0x597c00
cmp dword [ebp + 0x1318], 1
jne 0x597bee
mov ecx, dword [ebp]
push ecx
call fcn.00545990
push eax
call fcn.0056ec80
jmp 0x597bfd
mov edx, dword [ebp]
push edx
call fcn.0049ef40
push eax
call fcn.0056ed70
add esp, 8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x597c3e
mov ecx, dword [ebp + 0x14ac]
mov edx, dword [ebp + 0x1480]
lea eax, [esp + 0x10f0]
push eax
push ecx
push edx
call fcn.0048a270
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0x1480]
push eax
push ecx
push 1
push edx
call fcn.00489e90
add esp, 0x1c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x597c7c
mov ecx, dword [ebp + 0x14ac]
mov edx, dword [ebp + 0x1484]
lea eax, [esp + 0x2158]
push eax
push ecx
push edx
call fcn.0048a270
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x1484]
push eax
push ecx
push 1
push edx
call fcn.00489e90
add esp, 0x1c
push 0x806f
push ebx
call fcn.00591670
push 1
push ebp
call fcn.0058ee20
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov dword [0x61a9ec], eax
mov eax, dword [0x61c75c]
add esp, 0x10
test eax, eax
mov dword [0x61af40], ecx
mov dword [0x61c75c], 0xffffffff
je 0x597cd1
mov edx, dword [0x6a0f40]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [0x6a0f40]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push ebp
call fcn.00593580
mov eax, dword [ebp + 0x2150]
add esp, 8
test eax, eax
je 0x597cf9
mov ecx, dword [ebp]
push 0
push 0x8098
push ecx
call fcn.00590500
add esp, 0xc
mov edx, dword [ebp]
push 0x601
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0
call fcn.0055f1c0
add esp, 4
mov eax, dword [ebp]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x31b0
ret