Function at 0x419270
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fd18
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x58a710]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
test byte [edi + 0x2c], 0x60
je 0x41968e
cmp byte [ebp + 8], 8
je 0x41968e
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x4192c5
push 0x80004005
call fcn.004049a0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push dword [edi + 4]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edx, eax
add edx, 1
mov dword [ebp - 0x40], edx
jns 0x4192f6
push 0x80070057
call fcn.004049a0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x419316
push edx
lea ecx, [ebp - 0x10]
call fcn.004053d0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x40]
push edx
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [esi - 8]
push esi
call fcn.0052644e
add esp, 8
test eax, eax
js 0x4192ec
cmp eax, dword [esi - 8]
jg 0x4192ec
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0xb0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0x2c]
test al, al
jns 0x419408
cmp byte [ebp + 8], 0x2d
jne 0x419408
push esi
test al, 0x40
je 0x41939d
call fcn.0052a1e4
fstp qword [ebp - 0x50]
movsd xmm1, qword [ebp - 0x50]
xor eax, eax
xorps xmm0, xmm0
comisd xmm0, xmm1
push ecx
xorps xmm1, xmmword [0x54f280]
movsd qword [esp], xmm1
seta al
mov dword [ebp + 8], eax
push 0x54f01c
jmp 0x4193b4
call fcn.0052ae74
xor ecx, ecx
test eax, eax
sets cl
neg eax
push eax
mov dword [ebp + 8], ecx
push 0x54f020
lea eax, [ebp - 0x10]
push eax
call fcn.00404f50
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [ebp + 8], 0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
je 0x4193dd
dec ecx
dec eax
jmp 0x4193df
inc ecx
inc eax
push ecx
push eax
push 0xb1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xb7
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
jmp 0x41965a
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x10]
sub eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041ece0
mov edi, eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.004196e0
push dword [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00414320
push edi
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
call fcn.00414270
add esp, 0x18
mov edx, dword [ebp - 0x44]
or edi, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419474
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419492
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4c]
mov eax, edi
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4194b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
or ecx, 0xffffffff
mov dword [ebp - 0x3c], ecx
xor edi, edi
mov dword [ebp - 0x1c], ecx
or ecx, ecx
mov dword [ebp - 0x28], 0
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x34], ecx
mov dword [ebp + 8], 0xffffffff
test edx, edx
jle 0x419637
test edi, edi
js 0x4192ec
cmp edi, edx
jg 0x4192ec
movsx edx, byte [edi + eax]
lea ecx, [edx - 0x2d]
cmp ecx, 0x11
ja case.0x41951f.47
movzx ecx, byte [ecx + 0x4196c0]
jmp dword [ecx*4 + 0x4196a8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], edi
jmp 0x4195ba
mov ecx, dword [ebp - 0x18]
test dword [ecx + 0x2c], 0x100
je 0x419633
inc dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], edi
jmp 0x4195ba
mov ecx, dword [ebp - 0x18]
test dword [ecx + 0x2c], 0x100
je 0x419633
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
inc edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edx
jmp 0x4195bd
mov ecx, dword [ebp - 0x18]
test dword [ecx + 0x2c], 0x100
je 0x419633
inc dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], edi
jmp 0x4195ba
mov ecx, dword [ebp - 0x18]
test byte [ecx + 0x2c], 0x40
je 0x419633
inc dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
jmp 0x4195ba
push edx
call fcn.0052b1f7
add esp, 4
test eax, eax
mov eax, dword [ebp - 0x38]
je 0x419633
mov ecx, dword [ebp + 8]
test ecx, ecx
cmovs ecx, edi
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x14]
cmp dword [ebp - 0x28], 1
jg 0x419633
cmp edx, 1
jg 0x419633
cmp dword [ebp - 0x2c], 1
jg 0x419633
cmp dword [ebp - 0x30], 1
jg 0x419633
mov edx, dword [eax - 0xc]
inc edi
cmp edi, edx
jl 0x4194f8
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
cmp edi, 0xffffffff
je 0x4195f4
cmp edx, 0xffffffff
je 0x4195f4
cmp edi, edx
jg 0x419633
cmp dword [ebp - 0x1c], 0xffffffff
je 0x419604
cmp edx, 0xffffffff
je 0x419604
cmp dword [ebp - 0x1c], edx
jg 0x419633
cmp ecx, 0xffffffff
je 0x419637
cmp edi, 0xffffffff
je 0x419612
cmp edi, ecx
jg 0x419633
mov edi, dword [ebp - 0x1c]
cmp edi, 0xffffffff
je 0x41961e
cmp edi, ecx
jg 0x419633
cmp edx, 0xffffffff
je 0x419627
cmp edx, ecx
jg 0x419633
mov edx, dword [ebp - 0x40]
cmp edx, 0xffffffff
je 0x419637
cmp edx, ecx
jle 0x419637
xor edi, edi
jmp 0x41963c
mov edi, 1
or ecx, 0xffffffff
mov byte [ebp - 4], 0
lea edx, [eax - 0x10]
mov eax, ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41965a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x419679
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4