Function at 0x59d700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cf981
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
lea eax, [esp + 0x6c]
push eax
push ecx
mov dword [esp + 0x38], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi + 0xc]
push 2
lea edx, [esp + 0x70]
push edx
push eax
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [edi + 8]
push pe_nt_image_headers32
lea ecx, [esp + 0x9c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, 0xf
lea eax, [esp + 0x98]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov byte [esp + 0x10], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x59d780
sub eax, ecx
push eax
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x18]
call fcn.00405440
mov dword [esp + 0x1a4], esi
push 7
push 0x64059c
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], esi
mov byte [esp + 0x58], 0
call fcn.00405440
lea eax, [edi + 0x14]
mov edi, dword [ebp + 8]
add edi, 4
mov ebx, 0x10
mov dword [esp + 0x2c], eax
cmp dword [edi + 0x14], ebx
jb 0x59d7da
mov edx, dword [edi]
jmp 0x59d7dc
mov edx, edi
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x24], ebx
jae 0x59d7ea
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x64], ebx
jae 0x59d7f8
lea ecx, [esp + 0x50]
cmp dword [eax + 0x14], ebx
jb 0x59d7ff
mov eax, dword [eax]
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esp + 0x64], ebx
jb 0x59d81c
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0052d217
add esp, 4
mov dword [esp + 0x1a4], 0xffffffff
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
cmp dword [esp + 0x24], ebx
jb 0x59d84f
mov edx, dword [esp + 0x10]
push edx
call fcn.0052d217
add esp, 4
push 4
push 0x6405a4
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.00405440
mov dword [esp + 0x1a4], 1
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0xc]
lea esi, [esp + 0x34]
mov dword [esp + 0xc], eax
call fcn.00408c90
cmp dword [edi + 0x14], ebx
jb 0x59d89d
mov esi, dword [edi]
jmp 0x59d89f
mov esi, edi
cmp dword [eax + 0x14], ebx
jb 0x59d8a6
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x24], ebx
jae 0x59d8b4
lea edx, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x14], ebx
jb 0x59d8bf
mov ecx, dword [ecx]
push esi
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esp + 0x48], ebx
jb 0x59d8dc
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0052d217
add esp, 4
mov dword [esp + 0x1a4], 0xffffffff
cmp dword [esp + 0x24], ebx
jb 0x59d8fa
mov edx, dword [esp + 0x10]
push edx
call fcn.0052d217
add esp, 4
push 5
push 0x6405ac
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.00405440
mov dword [esp + 0x1a4], 2
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0xc]
lea esi, [esp + 0x34]
mov dword [esp + 0xc], eax
call fcn.00408c90
cmp dword [edi + 0x14], ebx
jb 0x59d948
mov esi, dword [edi]
jmp 0x59d94a
mov esi, edi
cmp dword [eax + 0x14], ebx
jb 0x59d951
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x24], ebx
jae 0x59d95f
lea edx, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x14], ebx
jb 0x59d96a
mov ecx, dword [ecx]
push esi
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esp + 0x48], ebx
jb 0x59d987
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0052d217
add esp, 4
mov dword [esp + 0x1a4], 0xffffffff
cmp dword [esp + 0x24], ebx
jb 0x59d9a5
mov edx, dword [esp + 0x10]
push edx
call fcn.0052d217
add esp, 4
push 3
push 0x6405b4
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.00405440
mov dword [esp + 0x1a4], 3
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0xc]
lea esi, [esp + 0x34]
mov dword [esp + 0xc], eax
call fcn.00408c90
cmp dword [edi + 0x14], ebx
jb 0x59d9f3
mov esi, dword [edi]
jmp 0x59d9f5
mov esi, edi
cmp dword [eax + 0x14], ebx
jb 0x59d9fe
mov ecx, dword [eax]
jmp 0x59da00
mov ecx, eax
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x24], ebx
jae 0x59da0e
lea edx, [esp + 0x10]
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x14], ebx
jb 0x59da19
mov eax, dword [eax]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esp + 0x48], ebx
jb 0x59da36
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0052d217
add esp, 4
mov dword [esp + 0x1a4], 0xffffffff
cmp dword [esp + 0x24], ebx
jb 0x59da54
mov edx, dword [esp + 0x10]
push edx
call fcn.0052d217
add esp, 4
push 6
push 0x6405b8
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.00405440
mov dword [esp + 0x1a4], 4
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
lea esi, [esp + 0x34]
mov dword [esp + 0xc], eax
call fcn.00408c90
cmp dword [edi + 0x14], ebx
jb 0x59daa2
mov esi, dword [edi]
jmp 0x59daa4
mov esi, edi
cmp dword [eax + 0x14], ebx
jb 0x59daab
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x24], ebx
jae 0x59dab9
lea edx, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x14], ebx
jb 0x59dac4
mov ecx, dword [ecx]
push esi
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esp + 0x48], ebx
jb 0x59dae1
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0052d217
add esp, 4
mov dword [esp + 0x1a4], 0xffffffff
cmp dword [esp + 0x24], ebx
jb 0x59daff
mov edx, dword [esp + 0x10]
push edx
call fcn.0052d217
add esp, 4
push 6
push 0x6405c0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.00405440
mov dword [esp + 0x1a4], 5
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
lea ecx, [esp + 0x30]
lea esi, [esp + 0x7c]
mov dword [esp + 0x30], eax
call fcn.00408c90
cmp dword [edi + 0x14], ebx
jb 0x59db55
mov edi, dword [edi]
cmp dword [eax + 0x14], ebx
jb 0x59db5c
mov eax, dword [eax]
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x59db6a
lea edx, [esp + 0x34]
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x14], ebx
jb 0x59db75
mov ecx, dword [ecx]
push edi
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esp + 0x90], ebx
jb 0x59db95
mov edx, dword [esp + 0x7c]
push edx
call fcn.0052d217
add esp, 4
cmp dword [esp + 0x48], ebx
jb 0x59dba8
mov eax, dword [esp + 0x34]
push eax
call fcn.0052d217
add esp, 4
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4