Function at 0x10018540
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x84], edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x78], 0
test edx, edx
je 0x10018dae
test esi, esi
je 0x10018dae
movups xmm0, xmmword [esi]
mov ecx, dword [edx]
lea eax, [ebp - 0x94]
push eax
sub esp, 0x10
mov dword [ebp - 0x94], 0
mov eax, esp
push edx
movups xmmword [eax], xmm0
call dword [ecx + 0x28]
test eax, eax
js 0x10018b18
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x10018b18
push 0xc
call fcn.10076018
mov esi, eax
add esp, 4
mov dword [ebp - 0x8c], esi
mov dword [ebp - 4], 6
test esi, esi
je 0x1001861b
push dword [ebp - 0x78]
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x1001861d
cmp dword [ebp - 0x78], eax
jne 0x10018dcb
jmp 0x1001861d
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x78], esi
test esi, esi
je 0x10018dd5
mov eax, dword [esi + 4]
mov dword [ebp - 4], 7
test eax, eax
jne 0x10018647
push dword [esi]
call fcn.10075d90
mov dword [esi + 4], eax
push eax
lea ecx, [ebp - 0x70]
call fcn.10011010
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 9
call fcn.10013570
cmp dword [edi + 0xc], 0
jne 0x100187d4
push dword [edi + 8]
mov ecx, edi
call fcn.10018e50
push eax
mov dword [edi + 0xc], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x100187d4
lea eax, [ebp - 0x9c]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov ecx, 4
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x78], ecx
je 0x100186da
lea eax, [ebp - 0x90]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x78], 0xc
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100186d5
mov ecx, dword [ebp - 0x78]
mov byte [ebp - 0x71], 1
jmp 0x100186de
mov ecx, 0xc
mov byte [ebp - 0x71], 0
mov edi, dword [ebp - 0x8c]
or esi, 0xffffffff
test edi, edi
je 0x1001870f
test cl, 8
je 0x1001870f
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1001870f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1001870f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x98]
mov dword [ebp - 4], 9
test edi, edi
je 0x1001873f
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1001873f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1001873f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp - 0x71], 0
je 0x10018b0b
lea eax, [ebp - 0x90]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0xc
call fcn.10015e70
mov esi, eax
push str.find_Edit_failed.
push esi
mov byte [ebp - 4], 0xd
call fcn.10012080
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0x134]
call fcn.10012280
mov edi, dword [ebp - 0x8c]
test edi, edi
je 0x10018b0b
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10018b0b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10018b0b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x70]
call fcn.10011940
jmp 0x10018dae
push 0
push 0
push 0xe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0xe
test eax, eax
jle 0x10018899
lea edi, [eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100763c5
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x84]
push esi
push edi
push 0xd
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
lea ecx, [ebp - 0x40]
call fcn.10015e20
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1003f9e0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10018885
mov ecx, eax
call fcn.10011940
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x58]
call fcn.10011940
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
call fcn.10011990
lea eax, [ebp - 0x80]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov ecx, 0x10
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x78], ecx
je 0x100188ee
lea eax, [ebp - 0x90]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 0x11
mov dword [ebp - 0x78], 0x30
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100188e9
mov ecx, dword [ebp - 0x78]
mov byte [ebp - 0x71], 1
jmp 0x100188f2
mov ecx, 0x30
mov byte [ebp - 0x71], 0
mov edi, dword [ebp - 0x8c]
or esi, 0xffffffff
test edi, edi
je 0x10018923
test cl, 0x20
je 0x10018923
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10018923
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10018923
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x7c]
mov dword [ebp - 4], 0xe
test edi, edi
je 0x10018950
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10018950
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10018950
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp - 0x71], 0
je 0x100189dd
lea eax, [ebp - 0x80]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0x12
call fcn.10015e70
mov esi, eax
push str.url:
push esi
mov byte [ebp - 4], 0x13
call fcn.10012080
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push edx
push esi
call fcn.10012080
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0x134]
call fcn.10012280
mov edi, dword [ebp - 0x7c]
mov byte [ebp - 4], 0xe
test edi, edi
je 0x100189dd
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100189dd
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x100189dd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp - 0x80]
push eax
call fcn.1006aae0
add esp, 4
mov esi, dword [eax]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x84]
push 1
push eax
push dword [ebp - 0x98]
mov edi, dword [esi]
mov byte [ebp - 4], 0x14
call fcn.10017e60
push eax
mov eax, dword [ebp - 0x84]
mov ecx, esi
push dword [eax + 8]
call dword [edi + 4]
mov edi, dword [ebp - 0x7c]
or esi, 0xffffffff
mov byte [ebp - 4], 0xe
test edi, edi
je 0x10018a44
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10018a44
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10018a44
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp - 0x80]
push eax
call fcn.10021e40
add esp, 4
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 0x15
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov edi, dword [ebp - 0x7c]
mov byte [ebp - 0x71], al
mov byte [ebp - 4], 0xe
test edi, edi
je 0x10018a90
mov ecx, esi
lock xadd dword [edi + 4], ecx
jne 0x10018a90
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10018a8d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov al, byte [ebp - 0x71]
test al, al
je 0x10018b03
mov eax, dword [0x100e0e60]
test eax, eax
jne 0x10018af2
push 0x100da004
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100e0e60], 0
jne 0x10018ae2
push 0x28
call fcn.10076018
add esp, 4
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 0x16
test eax, eax
je 0x10018ad4
mov ecx, eax
call fcn.1004d1d0
mov ecx, eax
jmp 0x10018ad6
xor ecx, ecx
xchg dword [ebp - 0x98], eax
mov dword [0x100e0e60], ecx
push 0x100da004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x100e0e60]
push 0
push 2
push 0x4d5
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x28]
call fcn.10011940
lea ecx, [ebp - 0x70]
call fcn.10011940
jmp 0x10018dae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov ecx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x78], ecx
je 0x10018b7c
lea eax, [ebp - 0x80]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 1
mov dword [ebp - 0x78], 3
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x10018b77
mov ecx, dword [ebp - 0x78]
mov byte [ebp - 0x71], 1
jmp 0x10018b80
mov ecx, 3
mov byte [ebp - 0x71], 0
mov edi, dword [ebp - 0x7c]
or esi, 0xffffffff
test edi, edi
je 0x10018bae
test cl, 2
je 0x10018bae
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10018bae
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10018bae
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10018bde
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10018bde
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10018bde
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp - 0x71], 0
je 0x10018dae
lea eax, [ebp - 0x80]
push eax
call fcn.1003b6a0
add esp, 4
mov eax, dword [eax]
mov esi, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov eax, dword [0x100e2e8c]
mov dword [ebp - 4], 2
test al, 1
jne 0x10018c48
or eax, 1
mov dword [0x100e2e8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x100b28e0
mov dword [0x100e2eac], 0x100b38ec
mov dword [0x100e2eb0], eax
mov byte [0x100e2eb4], 0
call fcn.1007639f
mov eax, dword [0x100e2e8c]
add esp, 4
test al, 2
jne 0x10018ca4
or eax, 2
mov dword [0x100e2e90], 0x100b3904
mov dword [0x100e2e8c], eax
xor eax, eax
push 0x100b2910
mov dword [0x100e2e94], 0x100e2eac
mov dword [0x100e2ea4], 2
mov dword [0x100e2e9c], 0
mov dword [0x100e2ea0], 0
mov dword [0x100e2ea8], eax
mov dword [0x100e2e98], 0x100e2e90
call fcn.1007639f
add esp, 4
mov eax, dword [0x100e2e90]
mov ecx, 0x100e2e90
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x10018cf3
test esi, 0xffff0000
jne 0x10018cdd
movzx eax, si
lea ecx, [ebp - 0x84]
push eax
call fcn.10009c70
jmp 0x10018d02
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018ce2
sub ecx, edx
sar ecx, 1
jmp 0x10018cf5
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x84]
call fcn.10009e80
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 4
call fcn.10015e70
mov edi, eax
push str.get_name:
push edi
mov byte [ebp - 4], 5
call fcn.10012080
mov esi, dword [ebp - 0x84]
mov ecx, 0x100b38d8
test esi, esi
cmovne ecx, esi
push ecx
push edi
call fcn.10010030
push str.__ret:
push edi
call fcn.10012080
add esp, 0x18
mov ecx, edi
push dword [ebp - 0x8c]
call fcn.10011d70
mov ecx, dword [ebp - 0x98]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x134]
call fcn.10012280
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018d89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x7c]
test edi, edi
je 0x10018dae
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10018dae
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10018dae
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.10075d70
push 0x8007000e
call fcn.10075d70
int3