Function at 0x568380
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push ebx
push ebp
mov ebp, dword [esp + 0x41c]
mov eax, dword [ebp]
push esi
push edi
push eax
call fcn.005827d0
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x10], edi
je 0x568b99
cmp dword [esp + 0x428], 2
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jne 0x5683d3
mov ecx, dword [ebp]
push 0x76
push ecx
call ebx
push 0x5e6c98
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x438]
test esi, esi
je 0x5684b0
mov edx, dword [ebp]
push 0x76
push edx
call ebx
push 0x7d000
push 0x7d000
mov ebx, eax
push 1
push ebx
call fcn.00488690
add esp, 0x10
push 0x3e7
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x38]
push esi
push ecx
call fcn.005ccdf0
add esp, 8
test eax, eax
jne 0x5684b0
push ebx
mov byte [esp + 0x3c], al
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x56845a
lea edi, [esp + 0x38]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x568440
mov dx, word [0x5e6c94]
mov al, byte [0x5e6c96]
mov word [edi], dx
mov byte [edi + 2], al
mov eax, esi
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x568460
lea edi, [esp + 0x38]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x568470
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
push ecx
push 0
push 0xc2
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [ebp]
push edx
call fcn.00567770
mov edi, dword [esp + 0x14]
add esp, 4
mov eax, dword [ebp]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x568b99
mov ecx, dword [edi + 0x988]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x613718]
push edx
push ebx
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x30], eax
mov eax, dword [0x613704]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x428]
test eax, eax
je 0x5686e3
lea esi, [ebp + 0x234]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x568517
mov ecx, dword [ebp]
push 0x67
sub eax, edx
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push eax
call ebx
cmp eax, edi
je 0x56854c
mov edx, dword [ebp]
push esi
push 0
push 0xc
push 0x67
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [ebp + 0x464]
test eax, eax
jbe 0x568585
push 1
push 1
push 0
push 1
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
push ecx
jge 0x568575
fadd qword [0x5e73f0]
sub esp, 8
fstp qword [esp]
call fcn.00516dc0
add esp, 0x20
jmp 0x56858d
mov dword [esp + 0x38], 0x612f6e
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x568594
sub eax, edx
mov edx, dword [ebp]
push 0x69
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
cmp eax, edi
je 0x5685c7
mov ecx, dword [ebp]
lea eax, [esp + 0x38]
push eax
push 0
push 0xc
push 0x69
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea edi, [ebp + 4]
lea edx, [esp + 0x38]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5685d2
mov eax, dword [ebp + 0x47c]
test eax, eax
je 0x568668
lea esi, [ebp + 0x68]
push esi
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x568668
lea edi, [esp + 0x38]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x568600
mov dx, word [0x5e6ca0]
mov al, byte [0x5e6ca2]
mov word [edi], dx
mov byte [edi + 2], al
mov eax, esi
mov edx, esi
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x568620
lea edi, [esp + 0x38]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x568630
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x568650
mov cx, word [0x5e6c9c]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov word [edi], cx
lea eax, [esp + 0x38]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x568670
sub eax, edx
mov edx, dword [ebp]
push 0x6b
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
cmp eax, edi
je 0x5686a3
mov ecx, dword [ebp]
lea eax, [esp + 0x38]
push eax
push 0
push 0xc
push 0x6b
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea esi, [ebp + 0x130]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5686b0
sub eax, edx
mov edx, dword [ebp]
push 0x6d
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
cmp eax, edi
je 0x5686df
mov eax, dword [ebp]
push esi
push 0
push 0xc
push 0x6d
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x434]
xor edi, edi
cmp eax, edi
jne 0x5686fd
cmp dword [esp + 0x428], edi
je 0x5689d3
mov eax, dword [ebp + 0x490]
xor esi, esi
cmp eax, edi
mov dword [esp + 0x10], edi
jle 0x568715
mov esi, dword [ebp + 0x494]
sub esi, eax
cmp esi, edi
mov byte [esp + 0x38], 0
jbe 0x568898
cmp dword [ebp + 0x458], edi
jbe 0x568898
cmp dword [ebp + 0x440], 4
jne 0x56883b
call fcn.00423b40
sub eax, dword [ebp + 0x498]
sbb edx, dword [ebp + 0x49c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
js 0x56883b
jg 0x568767
cmp eax, 0x7d0
jbe 0x56883b
fild qword [esp + 0x24]
fmul qword [0x5ec2d8]
fcom qword [0x5e73e0]
fnstsw ax
test ah, 5
jp 0x568786
fstp st(0)
fld qword [0x5e73e0]
mov ecx, dword [ebp + 0x458]
fild dword [ebp + 0x458]
test ecx, ecx
jge 0x56879c
fadd qword [0x5e73f0]
mov edx, dword [ebp + 0x4a0]
fild dword [ebp + 0x4a0]
test edx, edx
jge 0x5687b2
fadd qword [0x5e73f0]
fsubp st(1)
fcom qword [0x5e76a0]
fnstsw ax
test ah, 5
jp 0x5687c9
fstp st(0)
fld qword [0x5e76a0]
fdiv st(1)
call fcn.005cbd54
fstp st(0)
cmp eax, edi
ja 0x5687ea
mov ecx, dword [ebp + 0x4a4]
cmp ecx, 2
jae 0x5687ea
inc ecx
mov dword [ebp + 0x4a4], ecx
jmp 0x568816
mov ecx, dword [ebp + 0x46c]
cmp eax, ecx
mov dword [ebp + 0x4a4], edi
jb 0x568808
sub eax, ecx
shr eax, 1
add eax, ecx
mov dword [ebp + 0x46c], eax
jmp 0x568816
mov edx, ecx
sub edx, eax
shr edx, 1
sub ecx, edx
mov dword [ebp + 0x46c], ecx
call fcn.00423b40
mov dword [ebp + 0x498], eax
mov eax, dword [ebp + 0x458]
mov dword [ebp + 0x49c], edx
mov dword [ebp + 0x4a0], eax
mov dword [esp + 0x10], 1
mov edx, dword [ebp + 0x46c]
fild dword [ebp + 0x46c]
test edx, edx
push 1
push 1
push edi
push 1
push 1
lea ecx, [esp + 0x4c]
push ecx
jge 0x56885f
fadd qword [0x5e73f0]
sub esp, 8
fstp qword [esp]
call fcn.00516dc0
mov al, byte [esp + 0x58]
add esp, 0x20
test al, al
je 0x568898
lea edi, [esp + 0x38]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x568880
mov eax, dword [0x5eac80]
mov cl, byte [0x5eac84]
mov dword [edi], eax
mov byte [edi + 4], cl
mov eax, dword [ebp]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [esp + 0x14]
push edx
push 0x74
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp]
push 2
lea ecx, [esp + 0x18]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [esp + 0x38]
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5688d0
mov edx, dword [esp + 0x18]
push 0
sub eax, ecx
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
push ecx
push 6
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
test esi, esi
mov byte [esp + 0x38], 0
jbe 0x56897a
mov eax, dword [ebp + 0x464]
test eax, eax
jbe 0x56897a
mov ecx, dword [ebp + 0x46c]
test ecx, ecx
jbe 0x56897a
mov edx, dword [ebp + 0x448]
test edx, edx
je 0x568924
xor eax, eax
jmp 0x568956
mov edx, dword [esp + 0x10]
test edx, edx
je 0x568947
sub eax, dword [ebp + 0x458]
xor edx, edx
div ecx
test eax, eax
ja 0x56893f
mov eax, 1
mov dword [ebp + 0x4a8], eax
jmp 0x56894d
mov eax, dword [ebp + 0x4a8]
test eax, eax
ja 0x568956
mov eax, 1
push 3
push eax
push 0x5e6c98
call fcn.0055ac10
add esp, 0xc
lea edx, [esp + 0x38]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x568970
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x72
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp]
push 2
lea eax, [esp + 0x18]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5689a8
mov ecx, dword [esp + 0x18]
push 0
sub eax, edx
push eax
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x20]
push eax
push 6
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x5689d9
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [esp + 0x42c]
test eax, eax
jne 0x5689f3
mov eax, dword [esp + 0x428]
test eax, eax
je 0x568af9
mov ecx, dword [ebp + 0x458]
fild dword [ebp + 0x458]
test ecx, ecx
push 1
push 1
push 0
push 1
push 1
lea eax, [esp + 0x4c]
mov byte [esp + 0x4c], 0
push eax
jge 0x568a1d
fadd qword [0x5e73f0]
sub esp, 8
fstp qword [esp]
call fcn.00516dc0
mov eax, dword [ebp + 0x490]
add esp, 0x20
test eax, eax
jle 0x568a9c
mov ecx, dword [ebp + 0x494]
sub ecx, eax
je 0x568a9c
lea edi, [esp + 0x38]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x568a44
mov edx, dword [str._in]
mov al, byte [0x5f0784]
push 3
push ecx
mov dword [edi], edx
push 0x5e6c98
mov byte [edi + 4], al
call fcn.0055ac10
add esp, 0xc
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x568a70
lea edi, [esp + 0x38]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x568a80
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x70
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp]
push 2
lea eax, [esp + 0x18]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [esp + 0x38]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x568ad0
mov ecx, dword [esp + 0x18]
push 0
sub eax, edx
push eax
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x20]
push eax
push 6
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x430]
test eax, eax
jne 0x568b0f
mov eax, dword [esp + 0x428]
test eax, eax
je 0x568b6a
mov ecx, dword [ebp]
lea eax, [esp + 0x14]
push eax
push 0x6e
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp]
push 2
lea edx, [esp + 0x18]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [ebp + 0x460]
mov eax, dword [esp + 0x14]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], eax
push ebx
mov dword [edx + 0xc], ecx
call fcn.005677e0
add esp, 0x20
mov edx, dword [esp + 0x30]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x34]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp]
push ebx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret