Function at 0x1242ac10
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x124d3cff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8a8
push ebx
push ebp
push esi
push edi
push 0x124f6c8c
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
xor ebx, ebx
add esp, 0x10
mov dword [esp + 0x28], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, ebx
mov dword [esp + 0x44], eax
je 0x1242b3f4
lea ecx, [esp + 0x5c]
mov dword [esp + 0x14], 0xffffffff
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebx
lea edx, [esp + 0x18]
mov eax, dword [esp + 0x60]
push ebx
push edx
push eax
call fcn.124241d0
add esp, 0x10
test eax, eax
je 0x1242b3f4
cmp dword [esp + 0x14], 0x21
jne 0x1242aca4
lea ecx, [esp + 0x44]
push ecx
call fcn.1242b430
add esp, 4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x8a]
mov word [esp + 0x88], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x88]
push 0x104
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [0x124de7fc]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x88]
lea ecx, [esp + 0x24]
push edx
mov dword [esp + 0x8c4], ebx
call fcn.12456050
lea ecx, [esp + 0x68]
mov byte [esp + 0x8c0], 1
call fcn.1245c110
lea ecx, [esp + 0x78]
mov byte [esp + 0x8c0], 2
call fcn.1245c110
mov eax, dword [0x12515be4]
xor esi, esi
cmp eax, ebx
mov byte [esp + 0x8c0], 3
jle 0x1242b3ad
mov eax, dword [esp + 0x14]
xor edi, edi
mov ecx, dword [0x12515be0]
cmp dword [edi + ecx + 8], eax
jne 0x1242ad8a
lea edx, [esp + 0x24]
push eax
push edx
call fcn.124277b0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], 1
push eax
call fcn.124278e0
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
mov dword [esp + 0x18], ebp
jne 0x1242ada4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], ebx
push ecx
call fcn.12424850
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x1242ada0
mov eax, dword [esp + 0x14]
mov ecx, dword [0x12515be4]
inc esi
add edi, 0x870
cmp esi, ecx
jl 0x1242ad37
jmp 0x1242b3ad
mov ebp, dword [esp + 0x18]
push 0x12516280
lea ecx, [esp + 0x20]
call fcn.12456a70
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x70]
call fcn.1245c180
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x80]
call fcn.1245c180
lea eax, [esi + esi*2]
lea edx, [esp + 0x68]
push edx
push 0x124f6c88
lea eax, [eax + eax*4]
lea ebx, [eax + eax*8]
mov eax, dword [0x12515be0]
shl ebx, 4
mov dword [esp + 0x68], ebx
lea ecx, [ebx + eax + 0x48]
push ecx
call fcn.12461120
mov eax, dword [0x12515be0]
lea edx, [esp + 0x84]
push edx
push 0x124f6c88
lea ecx, [ebx + eax + 0x250]
push ecx
call fcn.12461120
mov eax, dword [esp + 0x84]
xor edi, edi
add esp, 0x18
xor esi, esi
cmp eax, edi
mov dword [esp + 0x48], esi
jle 0x1242b3a9
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x1c]
lea eax, [edx + esi*4]
push eax
call fcn.12456980
mov ecx, dword [0x12515be0]
lea eax, [esp + 0x1c]
mov edx, dword [ebx + ecx + 8]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.12455df0
lea ecx, [esp + 0x6c]
push ecx
call fcn.124297c0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c4], 4
call fcn.12456980
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c0], 3
call fcn.124567f0
mov ecx, 0x12516288
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
call fcn.1242f850
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, 0x12516288
call fcn.1242fa00
cmp eax, edi
jne 0x1242b398
mov ecx, dword [0x124de7fc]
mov dword [esp + 0x10], ecx
push str.SELECT
lea ecx, [esp + 0x54]
mov byte [esp + 0x8c4], 5
call fcn.12455ef0
lea edx, [esp + 0x50]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x8c4], 6
call fcn.124574a0
lea ecx, [esp + 0x50]
mov byte [esp + 0x8c0], 5
call fcn.124567f0
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.12457440
push str._FROM
lea ecx, [esp + 0x50]
call fcn.12455ef0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8c0], 7
push ecx
lea ecx, [esp + 0x14]
call fcn.124574a0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8c0], 5
call fcn.124567f0
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x10]
push edx
call fcn.12457440
push str._WHERE
lea ecx, [esp + 0x5c]
call fcn.12455ef0
lea eax, [esp + 0x58]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x8c4], 8
call fcn.124574a0
lea ecx, [esp + 0x58]
mov byte [esp + 0x8c0], 5
call fcn.124567f0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.12457440
push str.___1_ORDER_BY
lea ecx, [esp + 0x3c]
call fcn.12455ef0
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x8c4], 9
call fcn.124574a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x8c0], 5
call fcn.124567f0
cmp dword [esp + 0x54], edi
jne 0x1242b00f
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x10]
push eax
call fcn.12457440
push str._DESC_
lea ecx, [esp + 0x40]
call fcn.12455ef0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8c0], 0xa
push ecx
lea ecx, [esp + 0x14]
call fcn.124574a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8c0], 5
call fcn.124567f0
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.12457440
push str._DESC_LIMIT_1
lea ecx, [esp + 0x44]
call fcn.12455ef0
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x8c4], 0xb
call fcn.124574a0
lea ecx, [esp + 0x40]
mov byte [esp + 0x8c0], 5
call fcn.124567f0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x20]
push edi
push ecx
push 0xffffffffffffffff
push edx
push eax
mov ecx, 0x12516288
call fcn.1242fa20
cmp eax, edi
jne 0x1242b369
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push edi
push 0xffffffffffffffff
push ecx
push 1
push edx
mov ecx, 0x12516288
call fcn.1242fa80
mov ecx, 0x12516288
mov eax, dword [esp + 0x20]
push eax
call fcn.1242fab0
cmp eax, 0x64
jne 0x1242b369
mov ecx, dword [esp + 0x20]
push edi
push ecx
mov ecx, 0x12516288
call fcn.1242fb00
push eax
lea ecx, [esp + 0x38]
call fcn.12456050
mov edx, dword [esp + 0x34]
mov ecx, 0x189
xor eax, eax
lea edi, [esp + 0x294]
rep stosd dword es:[edi], eax
push 0x103
lea eax, [esp + 0x298]
push edx
push eax
mov byte [esp + 0x8cc], 0xc
mov dword [esp + 0x29c], 1
call fcn.1246f6a5
mov ecx, dword [esp + 0x30]
push 0x103
lea edx, [esp + 0x4ac]
push ecx
push edx
call fcn.1246f6a5
mov eax, dword [esp + 0x90]
push 0x103
lea ecx, [esp + 0x6c0]
mov eax, dword [eax + esi*4]
push eax
push ecx
call fcn.1246f6a5
mov eax, dword [0x12515bcc]
add esp, 0x24
mov esi, eax
cmp esi, eax
mov dword [esp + 0x2c], esi
jl 0x1242b305
lea ebp, [esi + 1]
test ebp, ebp
jne 0x1242b179
mov ecx, dword [0x12515bc8]
test ecx, ecx
je 0x1242b168
push ecx
mov dword [esp + 0x30], eax
call fcn.1246f3e6
add esp, 4
mov dword [0x12515bc8], ebp
xor eax, eax
mov dword [0x12515bd0], eax
mov dword [0x12515bcc], eax
jmp 0x1242b301
mov edx, dword [0x12515bc8]
test edx, edx
jne 0x1242b1c9
lea edx, [ebp + ebp*2]
shl edx, 4
add edx, ebp
lea edi, [ebp + edx*4]
shl edi, 3
push edi
call fcn.1246f55f
mov edx, eax
mov ecx, edi
mov dword [0x12515bc8], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x12515bd0], ebp
mov dword [0x12515bcc], ebp
jmp 0x1242b301
mov edi, dword [0x12515bd0]
cmp ebp, edi
jg 0x1242b225
cmp eax, ebp
jge 0x1242b212
lea edi, [eax + eax*2]
mov ecx, ebp
shl edi, 4
add edi, eax
sub ecx, eax
lea eax, [eax + edi*4]
lea edi, [edx + eax*8]
lea edx, [ecx + ecx*2]
shl edx, 4
add edx, ecx
xor eax, eax
lea ecx, [ecx + edx*4]
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x12515bcc], ebp
jmp 0x1242b301
jle 0x1242b21a
sub eax, ebp
mov dword [esp + 0x2c], eax
mov dword [0x12515bcc], ebp
jmp 0x1242b301
mov ecx, dword [0x12515bd4]
test ecx, ecx
jne 0x1242b253
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x1242b246
mov ecx, 4
jmp 0x1242b253
cmp ecx, 0x400
jle 0x1242b253
mov ecx, 0x400
lea ebx, [ecx + edi]
cmp ebp, ebx
jl 0x1242b25c
mov ebx, ebp
lea eax, [ebx + ebx*2]
shl eax, 4
add eax, ebx
lea ecx, [ebx + eax*4]
shl ecx, 3
push ecx
call fcn.1246f55f
mov edx, eax
mov eax, dword [0x12515bcc]
mov esi, dword [0x12515bc8]
mov edi, edx
lea ecx, [eax + eax*2]
mov dword [esp + 0x2c], edx
shl ecx, 4
add ecx, eax
lea ecx, [eax + ecx*4]
shl ecx, 3
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x12515bcc]
sub eax, ecx
lea esi, [ecx + ecx*2]
shl esi, 4
add esi, ecx
lea ecx, [ecx + esi*4]
lea edi, [edx + ecx*8]
lea edx, [eax + eax*2]
shl edx, 4
add edx, eax
lea ecx, [eax + edx*4]
xor eax, eax
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x12515bc8]
push eax
call fcn.1246f3e6
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [0x12515bd0], ebx
mov ebx, dword [esp + 0x68]
add esp, 8
mov dword [0x12515bc8], ecx
mov dword [0x12515bcc], ebp
mov ebp, dword [esp + 0x18]
mov ecx, dword [0x12515bc8]
lea edx, [esi + esi*2]
shl edx, 4
add edx, esi
lea eax, [esi + edx*4]
lea esi, [esp + 0x290]
lea edi, [ecx + eax*8]
mov ecx, 0x18a
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
push edx
push eax
push str.QueryUrlByTitle__Add_wstrUrl:__s_title:__s_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x18
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 1
mov byte [esp + 0x8c0], 5
call fcn.124567f0
mov esi, dword [esp + 0x48]
xor edi, edi
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, 0x12516288
call fcn.1242fbf0
mov ecx, 0x12516288
mov edx, dword [esp + 0x30]
push edx
call fcn.1242fbd0
lea ecx, [esp + 0x10]
mov byte [esp + 0x8c0], 3
call fcn.124567f0
mov eax, dword [esp + 0x6c]
inc esi
cmp esi, eax
mov dword [esp + 0x48], esi
jl 0x1242ae2f
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x78]
mov byte [esp + 0x8c0], 2
call fcn.1245c120
lea ecx, [esp + 0x68]
mov byte [esp + 0x8c0], 1
call fcn.1245c120
lea ecx, [esp + 0x24]
mov byte [esp + 0x8c0], 0
call fcn.124567f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8c0], 0xffffffff
call fcn.124567f0
push ebx
push str.QueryUrlByTitle____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
mov ecx, dword [esp + 0x8cc]
add esp, 0x14
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8b4
ret