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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc30
test eax, eax
push ebp
mov dword [0x60a6b0], 0xffffffff
je 0x58b35d
mov ebp, dword [0x64531c]
test ebp, ebp
je 0x58b35d
jmp 0x58a930
cmp dword [ebp], eax
je 0x58a947
mov ebp, dword [ebp + 0xe54]
test ebp, ebp
jne 0x58a930
pop ebp
add esp, 0xc30
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push esi
mov esi, dword [ebp]
push edi
mov edi, dword [esp + 0xc48]
cmp edi, 0xffffffff
jne 0x58a984
test esi, esi
je 0x58a97d
push esi
call ebx
test eax, eax
je 0x58a97d
push esi
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [0x645328]
jne 0x58a97d
xor eax, eax
jmp 0x58a9ba
mov eax, 1
jmp 0x58a9ba
test esi, esi
je 0x58a9b0
push esi
call ebx
test eax, eax
je 0x58a9b0
push esi
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [0x645328]
jne 0x58a9b0
test edi, edi
je 0x58a9b8
mov eax, dword [ebp]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc30
ret
test edi, edi
je 0x58b357
mov eax, edi
mov ecx, dword [0x63b690]
test ecx, ecx
mov dword [0x60a6b0], eax
je 0x58a9e5
test eax, eax
je 0x58a9e5
pop edi
pop esi
mov dword [0x60a6b0], 0xffffffff
mov eax, dword [ebp]
pop ebx
pop ebp
add esp, 0xc30
ret
push 0
push ebp
call fcn.004812b0
mov esi, dword [esp + 0xc4c]
mov eax, connect
add esp, 8
push esi
mov dword [0x645350], eax
mov dword [0x645354], eax
mov dword [0x645348], eax
mov dword [0x64534c], eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x58aa30
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
mov dword [0x645344], 0
jne 0x58aa3a
mov dword [0x645344], 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 [0x64534c], eax
mov eax, dword [esp + 0x80]
sub eax, ecx
push esi
mov dword [0x645348], ecx
mov dword [0x645354], edx
mov dword [0x645350], eax
call ebx
test eax, eax
je 0x58aaa1
push esi
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [0x645328]
je 0x58aaf9
mov ecx, dword [0x645348]
mov edx, dword [0x64534c]
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.005028a0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
add esp, 0x10
cmp eax, ecx
je 0x58aae3
sub eax, ecx
add dword [0x645348], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
je 0x58aafb
sub eax, ecx
add dword [0x64534c], eax
jmp 0x58aafb
xor esi, esi
mov eax, dword [0x645348]
mov ecx, dword [0x64534c]
mov dword [esp + 0x14], eax
mov eax, dword [0x60a6b0]
mov edi, 1
cmp eax, edi
mov dword [esp + 0x18], ecx
jne 0x58ab2f
mov eax, dword [0x645328]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
jmp 0x58ab41
mov edx, dword [0x645328]
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 + 0x470]
push 0x3e7
push edx
mov dword [0x645348], eax
mov dword [0x64534c], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00423a00
mov eax, dword [ebp + 0x884]
add esp, 8
cmp eax, esi
je 0x58abb5
mov edx, dword [ebp + 0x8b0]
push 0x3b5
lea ecx, [esp + 0x474]
push ecx
push edx
push eax
call fcn.004884f0
mov edx, dword [ebp + 0x8b0]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebp + 0x884]
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
call fcn.00488760
add esp, 0x20
lea ecx, [esp + 0x858]
push 0x3e7
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], esi
call fcn.00423a00
mov eax, dword [ebp + 0x888]
add esp, 8
cmp eax, esi
je 0x58ac16
mov ecx, dword [ebp + 0x8b0]
push 0x3b5
lea edx, [esp + 0x85c]
push edx
push ecx
push eax
call fcn.004884f0
mov ecx, dword [ebp + 0x8b0]
lea edx, [esp + 0x30]
push edx
mov edx, dword [ebp + 0x888]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call fcn.00488760
add esp, 0x20
mov eax, dword [0x60a0fc]
mov ecx, dword [0x60a270]
mov dword [0x60a0fc], esi
mov dword [0x60a270], esi
mov dword [esp + 0x1c], eax
mov dword [ebp + 0xe14], edi
cmp dword [0x63b690], esi
mov dword [esp + 0x24], ecx
je 0x58ac49
mov dword [ebp + 0xe14], esi
cmp dword [ebp + 0x71c], 9
jne 0x58acdb
mov ebx, dword [0x60a6b0]
xor eax, eax
xor edx, edx
cmp ebx, eax
sete dl
lea esi, [ebp + 0xc10]
mov ecx, 0x69
mov edi, 0x645178
rep movsd dword es:[edi], dword [esi]
mov dword [0x645188], edx
mov esi, 1
mov dword [0x6451ec], esi
mov ecx, dword [ebp + 0xa3c]
mov dword [0x6451a0], ecx
mov dword [0x64519c], eax
mov dword [0x645198], eax
mov dword [0x6451cc], eax
mov edx, dword [ebp]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x58acd5
mov eax, dword [ebp]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x58acd5
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x58acdb
mov dword [0x64519c], esi
jmp 0x58acdb
mov dword [0x645198], esi
mov edx, dword [ebp + 0xbf4]
mov eax, dword [ebp + 0x720]
mov ecx, dword [ebp + 0x71c]
xor edi, edi
push edi
push edx
push edi
push eax
push ecx
lea edx, [ebp + 8]
push edx
call fcn.005899d0
mov ebx, eax
add esp, 0x18
cmp ebx, edi
je 0x58ad1e
mov esi, dword [0x64531c]
cmp esi, edi
je 0x58ad1e
cmp dword [esi], ebx
je 0x58ad4d
mov esi, dword [esi + 0xe54]
cmp esi, edi
jne 0x58ad10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword [0x60a0fc], eax
mov eax, dword [esp + 0xc38]
mov dword [0x60a6b0], 0xffffffff
mov dword [0x60a270], ecx
pop ebp
add esp, 0xc30
ret
mov edx, dword [esp + 0xc44]
mov dword [ebp], ebx
push ebx
push edx
mov dword [esi + 0x71c], 0xffffffff
mov dword [esi], edi
mov dword [esi + 0xbf4], edi
call fcn.005035c0
mov eax, dword [ebp + 0x988]
add esp, 8
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esi + 0x988]
lea eax, [esi + 0x98c]
lea edx, [ebp + 0x98c]
mov dword [ebp + 0x988], ecx
mov dword [esi + 0x988], edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x58ada0
mov edx, dword [esi + 0x9f0]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [ebp + 0x9f0], edx
mov eax, dword [esi + 0x9f4]
mov dword [ebp + 0x9f4], eax
mov ecx, dword [esi + 0x9fc]
mov dword [ebp + 0x9fc], ecx
mov edx, dword [esi + 0xa00]
mov dword [ebp + 0xa00], edx
mov eax, dword [esi + 0x768]
mov dword [ebp + 0x768], eax
mov eax, dword [ebp + 0x88c]
test eax, eax
je 0x58ae06
mov ecx, dword [ebp + 0x8a0]
test ecx, ecx
je 0x58ae06
push ecx
push 0xfffffffffffffffc
push eax
call edi
mov ecx, dword [esi + 0x8a0]
mov dword [ebp + 0x8a0], ecx
mov dword [esi + 0x8a0], 0
mov eax, dword [ebp + 0x884]
test eax, eax
je 0x58ae36
mov ecx, dword [ebp + 0x898]
test ecx, ecx
je 0x58ae36
push ecx
push 0xfffffffffffffffc
push eax
call edi
mov edx, dword [esi + 0x898]
mov dword [ebp + 0x898], edx
mov dword [esi + 0x898], 0
mov eax, dword [ebp + 0x888]
test eax, eax
je 0x58ae66
mov ecx, dword [ebp + 0x89c]
test ecx, ecx
je 0x58ae66
push ecx
push 0xfffffffffffffffc
push eax
call edi
mov eax, dword [esi + 0x89c]
mov dword [ebp + 0x89c], eax
mov dword [esi + 0x89c], 0
mov eax, dword [ebp + 0x87c]
test eax, eax
je 0x58ae96
mov ecx, dword [ebp + 0x894]
test ecx, ecx
je 0x58ae96
push ecx
push 0xfffffffffffffffc
push eax
call edi
mov ecx, dword [esi + 0x894]
mov dword [ebp + 0x894], ecx
xor eax, eax
mov dword [esi + 0x894], eax
mov edx, dword [ebp + 0x884]
mov ecx, dword [ebp + 0x888]
mov edi, dword [ebp + 0x88c]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0x87c]
mov dword [ebp + 0x87c], edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x880]
mov dword [ebp + 0x880], ecx
mov edx, dword [esi + 0x884]
mov dword [ebp + 0x884], edx
mov ecx, dword [esi + 0x888]
mov dword [ebp + 0x888], ecx
mov edx, dword [esi + 0x88c]
mov dword [ebp + 0x88c], edx
mov ecx, dword [esi + 0x8a8]
mov dword [ebp + 0x8a8], ecx
mov edx, dword [esi + 0x8ac]
mov dword [ebp + 0x8ac], edx
mov ecx, dword [esi + 0x8b0]
mov dword [ebp + 0x8b0], ecx
mov edx, dword [esi + 0x8b4]
push esi
mov dword [ebp + 0x8b4], edx
mov dword [ebp + 0x8a4], eax
call fcn.00582520
push ebp
call fcn.00587d20
lea eax, [esp + 0x90]
push 0x3e7
push eax
call fcn.00423a00
mov edx, dword [esp + 0xc54]
add esp, 0x10
push 0x3b5
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 + 0x71c]
test eax, eax
jne 0x58af9c
mov ecx, dword [0x60a6b0]
mov dword [0x60a56c], ecx
jmp 0x58b022
cmp eax, 2
jne 0x58afb7
cmp dword [ebp + 0x720], eax
jne 0x58afb7
mov edx, dword [0x60a6b0]
mov dword [0x60a574], edx
jmp 0x58b022
cmp eax, 4
jne 0x58afc8
mov eax, dword [0x60a6b0]
mov dword [0x60a58c], eax
jmp 0x58b022
cmp eax, 5
jne 0x58afe1
mov ecx, dword [0x60a6b0]
mov dword [0x64533c], ebx
mov dword [0x60a580], ecx
jmp 0x58b022
cmp eax, 6
jne 0x58affa
mov edx, dword [0x60a6b0]
mov dword [0x645334], ebx
mov dword [0x60a588], edx
jmp 0x58b022
cmp eax, 7
jne 0x58b011
mov eax, dword [0x60a6b0]
mov dword [0x645338], ebx
mov dword [0x60a584], eax
jmp 0x58b022
cmp eax, 8
jne 0x58b022
mov ecx, dword [0x60a6b0]
mov dword [0x60a590], ecx
cmp dword [ebp + 0x71c], 3
jne 0x58b086
lea edx, [esp + 0x88]
push 0x3e7
push edx
call fcn.00423a00
mov ecx, dword [esp + 0xc4c]
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
add esp, 8
lea eax, [esp + 0x88]
push eax
push 0x3e7
push 0xd
push 0x76
push ecx
call esi
mov al, byte [esp + 0x88]
test al, al
je 0x58b07d
lea edx, [esp + 0x88]
push edx
push 0
push 0xc
push 0x76
push ebx
call esi
push ebx
call fcn.00567770
add esp, 4
test edi, edi
je 0x58b094
push edi
push ebp
call fcn.00583580
add esp, 8
mov ecx, dword [0x63c814]
test ecx, ecx
mov edx, dword [esp + 0xc44]
je 0x58b0ec
mov eax, dword [ecx + 0x171c]
test eax, eax
je 0x58b0c8
nop
cmp dword [eax + 0x310], edx
jne 0x58b0be
mov dword [eax + 0x310], ebx
mov eax, dword [eax + 0x428]
test eax, eax
jne 0x58b0b0
mov eax, dword [ecx + 0x22c4]
test eax, eax
je 0x58b0e2
cmp dword [eax], edx
jne 0x58b0d8
mov dword [eax], ebx
mov eax, dword [eax + 0x264]
test eax, eax
jne 0x58b0d2
mov ecx, dword [ecx + 0x26a0]
test ecx, ecx
jne 0x58b0a5
mov eax, dword [0x643e4c]
test eax, eax
je 0x58b10d
cmp dword [eax + 0x90], edx
jne 0x58b103
mov dword [eax + 0x90], ebx
mov eax, dword [eax + 0x494]
test eax, eax
jne 0x58b0f5
mov eax, dword [0x63709c]
test eax, eax
je 0x58b128
cmp dword [eax], edx
je 0x58b126
mov eax, dword [eax + 0x4bc]
test eax, eax
jne 0x58b116
jmp 0x58b128
mov dword [eax], ebx
mov eax, dword [0x641548]
test eax, eax
je 0x58b143
cmp dword [eax], edx
je 0x58b141
mov eax, dword [eax + 0x3d4]
test eax, eax
jne 0x58b131
jmp 0x58b143
mov dword [eax], ebx
mov eax, dword [0x611900]
test eax, eax
je 0x58b162
lea esp, [esp]
cmp dword [eax], edx
je 0x58b160
mov eax, dword [eax + 0x890]
test eax, eax
jne 0x58b150
jmp 0x58b162
mov dword [eax], ebx
mov eax, dword [0x61531c]
test eax, eax
je 0x58b188
jmp 0x58b170
cmp dword [eax + 0x134], edx
jne 0x58b17e
mov dword [eax + 0x134], ebx
mov eax, dword [eax + 0x544]
test eax, eax
jne 0x58b170
mov eax, dword [0x617040]
test eax, eax
je 0x58b1a1
cmp dword [eax], edx
jne 0x58b197
mov dword [eax], ebx
mov eax, dword [eax + 0x21c]
test eax, eax
jne 0x58b191
mov eax, dword [0x615314]
test eax, eax
je 0x58b1c8
lea ebx, [ebx]
cmp dword [eax + 0x18c], edx
jne 0x58b1be
mov dword [eax + 0x18c], ebx
mov eax, dword [eax + 0x9d0]
test eax, eax
jne 0x58b1b0
mov eax, dword [0x613894]
test eax, eax
je 0x58b1e9
cmp dword [eax + 0xc8], edx
jne 0x58b1df
mov dword [eax + 0xc8], ebx
mov eax, dword [eax + 0x13ac]
test eax, eax
jne 0x58b1d1
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0x884]
test eax, eax
je 0x58b20b
push 2
push ebp
call fcn.00587400
add esp, 8
cmp dword [ebp + 0x71c], 3
jne 0x58b240
cmp dword [ebp + 0x720], 1
jne 0x58b22e
mov eax, dword [ebp]
push eax
call fcn.0053d320
push eax
call fcn.005656e0
jmp 0x58b23d
mov ecx, dword [ebp]
push ecx
call fcn.0049c910
push eax
call fcn.005657d0
add esp, 8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x58b27e
mov eax, dword [ebp + 0x8b0]
mov ecx, dword [ebp + 0x884]
lea edx, [esp + 0x470]
push edx
push eax
push ecx
call fcn.004889d0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x884]
push edx
push eax
push 1
push ecx
call fcn.00488690
add esp, 0x1c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x58b2bc
mov eax, dword [ebp + 0x8b0]
mov ecx, dword [ebp + 0x888]
lea edx, [esp + 0x858]
push edx
push eax
push ecx
call fcn.004889d0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x888]
push edx
push eax
push 1
push ecx
call fcn.00488690
add esp, 0x1c
push 0x80b8
push ebx
call fcn.00585320
push 1
push ebp
call fcn.00582bc0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov dword [0x60a270], eax
mov eax, dword [0x60a6b0]
add esp, 0x10
test eax, eax
mov dword [0x60a0fc], edx
mov dword [0x60a6b0], 0xffffffff
je 0x58b312
mov ecx, dword [0x645324]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov edx, dword [0x645324]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push ebp
call fcn.00586ef0
mov eax, dword [ebp + 0xde8]
add esp, 8
test eax, eax
je 0x58b33a
mov eax, dword [ebp]
push 0
push 0x8098
push eax
call fcn.005841b0
add esp, 0xc
mov ecx, dword [ebp]
push 0x601
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0
call fcn.005562e0
add esp, 4
mov eax, dword [ebp]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc30
ret