Function at 0x54bd60
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [ebp]
mov edi, edx
mov dword [esp + 0x28], edi
call fcn.00561000
test eax, eax
mov dword [esp + 0x10], eax
je 0x54c55c
cmp edi, 2
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jne 0x54bda9
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 + 0x438]
test esi, esi
je 0x54be7c
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 + 0x44]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x40]
push esi
push eax
call fcn.00591d90
add esp, 8
test eax, eax
jne 0x54be7c
push ebx
mov byte [esp + 0x44], al
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x54be2e
lea edi, [esp + 0x40]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x54be13
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 0x54be30
lea edi, [esp + 0x40]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x54be40
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x40]
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 + 0x28]
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x54c55c
mov edx, dword [esp + 0x10]
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 + 0x44], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
test edi, edi
mov dword [esp + 0x34], eax
je 0x54c0b3
lea esi, [ebp + 0x234]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54bee1
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 0x54bf16
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 + 0x364]
test eax, eax
jbe 0x54bf4e
push 1
push 1
push 0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
push 1
jge 0x54bf38
fadd qword [0x5a5318]
sub esp, 8
mov edx, 1
fstp qword [esp]
lea ecx, [esp + 0x58]
call fcn.00504de0
jmp 0x54bf56
mov dword [esp + 0x40], 0x612f6e
lea eax, [esp + 0x40]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54bf60
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 0x54bf93
mov ecx, dword [ebp]
lea eax, [esp + 0x40]
push eax
push 0
push 0xc
push 0x69
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea edi, [ebp + 4]
lea edx, [esp + 0x40]
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x54bfa0
mov eax, dword [ebp + 0x378]
test eax, eax
je 0x54c038
lea esi, [ebp + 0x68]
push esi
push edi
call fcn.005a299c
add esp, 8
test eax, eax
je 0x54c038
lea edi, [esp + 0x40]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x54bfd0
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 0x54bff0
lea edi, [esp + 0x40]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x54c000
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 + 0x40]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x54c020
mov cx, word [0x5a4bf0]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov word [edi], cx
lea eax, [esp + 0x40]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54c040
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 0x54c073
mov ecx, dword [ebp]
lea eax, [esp + 0x40]
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 0x54c080
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 0x54c0af
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 + 0x14]
mov eax, dword [esp + 0x434]
xor esi, esi
cmp eax, esi
jne 0x54c0ca
cmp dword [esp + 0x28], esi
je 0x54c39c
mov eax, dword [ebp + 0x380]
xor edi, edi
cmp eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
jle 0x54c0ea
mov edi, dword [ebp + 0x384]
sub edi, eax
mov dword [esp + 0x14], edi
cmp edi, esi
mov byte [esp + 0x40], 0
jbe 0x54c27d
cmp dword [ebp + 0x358], esi
jbe 0x54c27d
cmp dword [ebp + 0x33c], 2
jne 0x54c218
call fcn.00420fa0
mov esi, dword [ebp + 0x388]
mov ecx, dword [ebp + 0x38c]
sub eax, esi
sbb edx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
js 0x54c218
jg 0x54c140
cmp eax, 0x7d0
jbe 0x54c218
fild qword [esp + 0x2c]
fmul qword [0x5a9ad0]
fcom qword [0x5a5308]
fnstsw ax
test ah, 5
jp 0x54c15f
fstp st(0)
fld qword [0x5a5308]
mov ecx, dword [ebp + 0x358]
fild dword [ebp + 0x358]
test ecx, ecx
jge 0x54c175
fadd qword [0x5a5318]
mov edx, dword [ebp + 0x390]
fild dword [ebp + 0x390]
test edx, edx
jge 0x54c18b
fadd qword [0x5a5318]
fsubp st(1)
fcom qword [0x5a55c0]
fnstsw ax
test ah, 5
jp 0x54c1a2
fstp st(0)
fld qword [0x5a55c0]
fdiv st(1)
call fcn.00590ed4
fstp st(0)
test eax, eax
ja 0x54c1c3
mov ecx, dword [ebp + 0x394]
cmp ecx, 2
jae 0x54c1c3
inc ecx
mov dword [ebp + 0x394], ecx
jmp 0x54c1f3
mov ecx, dword [ebp + 0x36c]
cmp eax, ecx
mov dword [ebp + 0x394], 0
jb 0x54c1e5
sub eax, ecx
shr eax, 1
add eax, ecx
mov dword [ebp + 0x36c], eax
jmp 0x54c1f3
mov edx, ecx
sub edx, eax
shr edx, 1
sub ecx, edx
mov dword [ebp + 0x36c], ecx
call fcn.00420fa0
mov dword [ebp + 0x388], eax
mov eax, dword [ebp + 0x358]
mov dword [ebp + 0x38c], edx
mov dword [ebp + 0x390], eax
mov dword [esp + 0x10], 1
mov esi, dword [ebp + 0x36c]
test esi, esi
push 1
push 1
push 0
mov dword [esp + 0x38], esi
fild dword [esp + 0x38]
push 1
jge 0x54c238
fadd qword [0x5a5318]
sub esp, 8
mov edx, 1
fstp qword [esp]
lea ecx, [esp + 0x58]
call fcn.00504de0
mov al, byte [esp + 0x40]
test al, al
je 0x54c27d
lea edi, [esp + 0x40]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x54c260
mov ecx, dword [str._Sec]
mov dl, byte [0x5a84cc]
mov dword [edi], ecx
mov byte [edi + 4], dl
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push 0x74
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp]
push 2
lea edx, [esp + 0x1c]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [esp + 0x40]
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x54c2b0
push 0
sub eax, ecx
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x24]
push edx
push 6
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
test edi, edi
mov byte [esp + 0x40], 0
jbe 0x54c341
test esi, esi
jbe 0x54c341
mov eax, dword [ebp + 0x344]
test eax, eax
je 0x54c2f4
xor eax, eax
jmp 0x54c325
mov eax, dword [esp + 0x10]
test eax, eax
je 0x54c31f
mov edx, dword [ebp + 0x350]
mov eax, dword [ebp + 0x364]
sub eax, edx
xor edx, edx
div esi
test eax, eax
ja 0x54c317
mov eax, 1
mov dword [ebp + 0x398], eax
jmp 0x54c325
mov eax, dword [ebp + 0x398]
push 3
mov edx, eax
mov ecx, 0x5a4bec
call fcn.0053ff60
lea edx, [esp + 0x40]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x54c337
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
push 0x72
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp]
push 2
lea ecx, [esp + 0x1c]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54c373
push 0
sub eax, edx
mov edx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
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 0x54c3b3
mov eax, dword [esp + 0x28]
test eax, eax
je 0x54c4b9
mov eax, dword [ebp + 0x358]
test eax, eax
mov byte [esp + 0x40], 0
jbe 0x54c45d
mov ecx, dword [ebp + 0x350]
fild dword [ebp + 0x350]
test ecx, ecx
push 1
push 1
push 0
push 1
jge 0x54c3e4
fadd qword [0x5a5318]
sub esp, 8
mov edx, 1
fstp qword [esp]
lea ecx, [esp + 0x58]
call fcn.00504de0
mov eax, dword [ebp + 0x380]
test eax, eax
jle 0x54c45d
mov edx, dword [ebp + 0x384]
sub edx, eax
je 0x54c45d
lea edi, [esp + 0x40]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x54c411
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 0x54c437
lea edi, [esp + 0x40]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x54c447
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 eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
push 0x70
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp]
push 2
lea ecx, [esp + 0x1c]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [esp + 0x40]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54c490
push 0
sub eax, edx
mov edx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
push ecx
push 6
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x430]
test eax, eax
jne 0x54c4cc
mov eax, dword [esp + 0x28]
test eax, eax
je 0x54c52d
mov edx, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x6e
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp]
push 2
lea eax, [esp + 0x1c]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [ebp + 0x35c]
mov ecx, dword [esp + 0x18]
push 0
push edx
mov edx, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 0x360]
mov ecx, ebx
call fcn.0054b9f0
mov eax, dword [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x38]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret 0x10