Function at 0x425d50
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x148
push ebx
push ebp
push esi
mov esi, dword [esp + 0x158]
push edi
mov bx, word [esi + 0x26e]
test bx, bx
je 0x425d7b
xor ecx, ecx
mov cx, word [esi + 0x29c]
lea edx, [ecx - 1]
jmp 0x425d8e
mov dx, word [esi + 0x29e]
xor ecx, ecx
mov cx, word [esi + 0x29c]
sub dx, cx
mov edi, dword [esp + 0x160]
cmp di, 0xffff
je 0x425dd6
test bx, bx
je 0x425da5
mov eax, edi
jmp 0x425db1
mov ax, word [esi + 0x386]
sub ax, cx
add eax, edi
and edx, 0xffff
and eax, 0xffff
push edx
push eax
lea eax, [esp + 0x1c]
push str._d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x425ef7
cmp word [esi + 0x4ea], 1
jne 0x425e26
test bx, bx
je 0x425df0
mov ax, word [esi + 0x2a2]
dec ax
jmp 0x425e01
mov ax, word [esi + 0x386]
add ax, word [esi + 0x2a2]
sub eax, ecx
dec eax
and edx, 0xffff
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x1c]
push str._d__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x425ef7
mov ax, word [esi + 0xa66]
test ax, ax
je 0x425e94
cmp ax, 2
je 0x425e94
test bx, bx
je 0x425e46
mov di, word [esi + 0x390]
jmp 0x425e56
mov di, word [esi + 0x38e]
add di, word [esi + 0x386]
sub edi, ecx
test bx, bx
je 0x425e64
mov ax, word [esi + 0x38e]
jmp 0x425e74
mov ax, word [esi + 0x390]
add ax, word [esi + 0x386]
sub eax, ecx
and edx, 0xffff
and eax, 0xffff
push edx
and edi, 0xffff
push eax
push edi
lea edx, [esp + 0x20]
push str._d__d__d
push edx
jmp 0x425eee
test bx, bx
je 0x425ea2
mov di, word [esi + 0x38e]
jmp 0x425eb2
mov di, word [esi + 0x390]
add di, word [esi + 0x386]
sub edi, ecx
test bx, bx
je 0x425ec0
mov ax, word [esi + 0x390]
jmp 0x425ed0
mov ax, word [esi + 0x38e]
add ax, word [esi + 0x386]
sub eax, ecx
and edx, 0xffff
and eax, 0xffff
push edx
and edi, 0xffff
push eax
push edi
lea eax, [esp + 0x20]
push str._d__d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov eax, dword [esi + 0x44]
test eax, eax
je 0x425f0f
push 8
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebp, eax
mov dword [esp + 0x10], ebp
jmp 0x425f13
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x4260f5
lea ecx, [esp + 0x58]
push 0x100
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x58]
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x425f5c
test cl, cl
je 0x425f58
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x425f5c
add eax, 2
add edi, 2
test cl, cl
jne 0x425f34
xor eax, eax
jmp 0x425f61
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x425f71
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ax, word [esi + 0x26e]
test ax, ax
je 0x425f84
mov ecx, 1
jmp 0x425f8b
mov cx, word [esi + 0x29c]
test ax, ax
je 0x425f99
mov ax, word [esi + 0x29c]
jmp 0x425fa0
mov ax, word [esi + 0x29e]
cmp cx, word [esi + 0x38e]
sbb edi, edi
xor ecx, ecx
mov cx, word [esi + 0x4ea]
neg edi
dec eax
cmp word [esi + ecx*2 + 0x38c], ax
mov ax, word [esi + 0xa66]
sbb ebx, ebx
neg ebx
test ax, ax
je 0x425fd3
cmp ax, 2
jne 0x425fde
mov eax, edi
mov edi, ebx
and eax, 0xffff
mov ebx, eax
push 0
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
test edi, edi
mov ebp, eax
jne 0x426015
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, ebp
jne 0x426015
mov eax, dword [0x651ad0]
test eax, eax
je 0x42600f
push 0xa
push ebp
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x651ad0], edi
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov edx, dword [esi + 0x4c]
push edx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42604f
push edi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
call dword [sym.imp.USER32.dll_GetCapture]
xor ecx, ecx
cmp eax, ebp
sete cl
push ecx
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push 0
push ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x42605c
xor edx, edx
test edi, edi
sete dl
mov dword [esi + 0xa2c], edx
mov ebp, dword [esp + 0x10]
push 8
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
test ebx, ebx
mov edi, eax
jne 0x426097
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, edi
jne 0x426097
mov eax, dword [0x651ad0]
test eax, eax
je 0x426091
push 0xa
push edi
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x651ad0], ebx
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x4c]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4260e1
push ebx
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
call dword [sym.imp.USER32.dll_GetCapture]
xor ecx, ecx
cmp eax, edi
sete cl
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebp
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret
xor edx, edx
push ebp
test ebx, ebx
sete dl
mov dword [esi + 0xa30], edx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret