Function at 0x54c570
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [ebp]
mov edi, edx
mov dword [esp + 0x24], edi
call fcn.00561000
test eax, eax
mov dword [esp + 0x28], eax
je 0x54cd53
cmp edi, 2
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jne 0x54c5b9
mov eax, dword [ebp]
push 0x76
push eax
call ebx
push 0x5a4bec
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x434]
test esi, esi
je 0x54c68c
mov ecx, dword [ebp]
push 0x76
push ecx
call ebx
mov ebx, eax
push 0x7d000
push 0x7d000
mov edx, 1
mov ecx, ebx
call fcn.0047e370
push 0x3e7
lea edx, [esp + 0x40]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.00591d90
add esp, 8
test eax, eax
jne 0x54c68c
push ebx
mov byte [esp + 0x40], al
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x54c63e
lea edi, [esp + 0x3c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x54c623
mov cx, word [0x5a4be8]
mov dl, byte [0x5a4bea]
mov word [edi], cx
mov byte [edi + 2], dl
mov eax, esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54c640
lea edi, [esp + 0x3c]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x54c650
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0xc2
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp]
call fcn.0054b980
mov edi, dword [esp + 0x24]
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x54cd53
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x98c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x5c9dc0]
push ecx
push ebx
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [0x5c9dac]
push edx
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
test edi, edi
mov dword [esp + 0x34], eax
je 0x54c8c3
lea esi, [ebp + 0x234]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54c6f1
sub eax, edx
mov edi, eax
mov eax, dword [ebp]
push 0x67
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push eax
call ebx
cmp eax, edi
je 0x54c726
mov ecx, dword [ebp]
push esi
push 0
push 0xc
push 0x67
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [ebp + 0x464]
test eax, eax
jbe 0x54c75e
push 1
push 1
push 0
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
push 1
jge 0x54c748
fadd qword [0x5a5318]
sub esp, 8
mov edx, 1
fstp qword [esp]
lea ecx, [esp + 0x54]
call fcn.00504de0
jmp 0x54c766
mov dword [esp + 0x3c], 0x612f6e
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54c770
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 0x54c7a3
mov ecx, dword [ebp]
lea eax, [esp + 0x3c]
push eax
push 0
push 0xc
push 0x69
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea edi, [ebp + 4]
lea edx, [esp + 0x3c]
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x54c7b0
mov eax, dword [ebp + 0x47c]
test eax, eax
je 0x54c848
lea esi, [ebp + 0x68]
push esi
push edi
call fcn.005a299c
add esp, 8
test eax, eax
je 0x54c848
lea edi, [esp + 0x3c]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x54c7e0
mov dx, word [0x5a4bf4]
mov al, byte [0x5a4bf6]
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 0x54c800
lea edi, [esp + 0x3c]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x54c810
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 + 0x3c]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x54c830
mov cx, word [0x5a4bf0]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov word [edi], cx
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54c850
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 0x54c883
mov ecx, dword [ebp]
lea eax, [esp + 0x3c]
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 0x54c890
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 0x54c8bf
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 + 0x430]
xor edi, edi
cmp eax, edi
jne 0x54c8da
cmp dword [esp + 0x24], edi
je 0x54cba3
mov eax, dword [ebp + 0x490]
xor esi, esi
cmp eax, edi
mov dword [esp + 0x10], edi
jle 0x54c8f2
mov esi, dword [ebp + 0x494]
sub esi, eax
cmp esi, edi
mov byte [esp + 0x3c], 0
jbe 0x54ca6e
cmp dword [ebp + 0x458], edi
jbe 0x54ca6e
cmp dword [ebp + 0x440], 4
jne 0x54ca18
call fcn.00420fa0
sub eax, dword [ebp + 0x498]
sbb edx, dword [ebp + 0x49c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
js 0x54ca18
jg 0x54c944
cmp eax, 0x7d0
jbe 0x54ca18
fild qword [esp + 0x2c]
fmul qword [0x5a9ad0]
fcom qword [0x5a5308]
fnstsw ax
test ah, 5
jp 0x54c963
fstp st(0)
fld qword [0x5a5308]
mov ecx, dword [ebp + 0x458]
fild dword [ebp + 0x458]
test ecx, ecx
jge 0x54c979
fadd qword [0x5a5318]
mov edx, dword [ebp + 0x4a0]
fild dword [ebp + 0x4a0]
test edx, edx
jge 0x54c98f
fadd qword [0x5a5318]
fsubp st(1)
fcom qword [0x5a55c0]
fnstsw ax
test ah, 5
jp 0x54c9a6
fstp st(0)
fld qword [0x5a55c0]
fdiv st(1)
call fcn.00590ed4
fstp st(0)
cmp eax, edi
ja 0x54c9c7
mov ecx, dword [ebp + 0x4a4]
cmp ecx, 2
jae 0x54c9c7
inc ecx
mov dword [ebp + 0x4a4], ecx
jmp 0x54c9f3
mov ecx, dword [ebp + 0x46c]
cmp eax, ecx
mov dword [ebp + 0x4a4], edi
jb 0x54c9e5
sub eax, ecx
shr eax, 1
add eax, ecx
mov dword [ebp + 0x46c], eax
jmp 0x54c9f3
mov edx, ecx
sub edx, eax
shr edx, 1
sub ecx, edx
mov dword [ebp + 0x46c], ecx
call fcn.00420fa0
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 ecx, dword [ebp + 0x46c]
fild dword [ebp + 0x46c]
test ecx, ecx
push 1
push 1
push edi
push 1
jge 0x54ca35
fadd qword [0x5a5318]
sub esp, 8
mov edx, 1
fstp qword [esp]
lea ecx, [esp + 0x54]
call fcn.00504de0
mov al, byte [esp + 0x3c]
test al, al
je 0x54ca6e
lea edi, [esp + 0x3c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x54ca56
mov edx, dword [str._Sec]
mov al, byte [0x5a84cc]
mov dword [edi], edx
mov byte [edi + 4], al
mov edx, dword [ebp]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x14]
push ecx
push 0x74
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 + 0x3c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x54caa2
push 0
sub eax, ecx
mov ecx, dword [esp + 0x1c]
push eax
lea edx, [esp + 0x44]
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]
test esi, esi
mov byte [esp + 0x3c], 0
jbe 0x54cb4a
mov eax, dword [ebp + 0x464]
test eax, eax
jbe 0x54cb4a
mov ecx, dword [ebp + 0x46c]
test ecx, ecx
jbe 0x54cb4a
mov edx, dword [ebp + 0x448]
test edx, edx
je 0x54caf6
xor eax, eax
jmp 0x54cb28
mov edx, dword [esp + 0x10]
test edx, edx
je 0x54cb19
sub eax, dword [ebp + 0x458]
xor edx, edx
div ecx
test eax, eax
ja 0x54cb11
mov eax, 1
mov dword [ebp + 0x4a8], eax
jmp 0x54cb1f
mov eax, dword [ebp + 0x4a8]
test eax, eax
ja 0x54cb28
mov eax, 1
push 3
mov edx, eax
mov ecx, 0x5a4bec
call fcn.0053ff60
lea edx, [esp + 0x3c]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x54cb40
mov ecx, dword [ebp]
lea eax, [esp + 0x14]
push eax
push 0x72
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]
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54cb78
push 0
sub eax, edx
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x20]
push edx
push 6
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x54cba9
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [esp + 0x428]
test eax, eax
jne 0x54cbc0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x54ccb9
mov edx, dword [ebp + 0x458]
fild dword [ebp + 0x458]
test edx, edx
push 1
push 1
push 0
mov byte [esp + 0x48], 0
push 1
jge 0x54cbe3
fadd qword [0x5a5318]
sub esp, 8
mov edx, 1
fstp qword [esp]
lea ecx, [esp + 0x54]
call fcn.00504de0
mov eax, dword [ebp + 0x490]
test eax, eax
jle 0x54cc62
mov edx, dword [ebp + 0x494]
sub edx, eax
je 0x54cc62
lea edi, [esp + 0x3c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x54cc10
mov eax, dword [str._in]
mov cl, byte [0x5ad62c]
mov dword [edi], eax
mov byte [edi + 4], cl
push 3
mov ecx, 0x5a4bec
call fcn.0053ff60
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x54cc36
lea edi, [esp + 0x3c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x54cc46
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 eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push 0x70
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 + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54cc90
push 0
sub eax, edx
mov edx, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x44]
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]
mov eax, dword [esp + 0x42c]
test eax, eax
jne 0x54cccc
mov eax, dword [esp + 0x24]
test eax, eax
je 0x54cd24
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x6e
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]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push 0
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x34]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 0x460]
mov ecx, ebx
call fcn.0054b9f0
mov edx, dword [esp + 0x28]
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 + 0x38]
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, 0x414
ret 0x10