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

Disassembly:
push 0xffffffffffffffff
push 0x12504e6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8a8
push ebx
push ebp
push esi
push edi
push 0x12527e50
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
xor ebx, ebx
add esp, 0x10
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, ebx
mov dword [esp + 0x44], eax
je 0x1245b44e
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.124541d0
add esp, 0x10
test eax, eax
je 0x1245b44e
cmp dword [esp + 0x14], 0x21
jne 0x1245acf4
lea ecx, [esp + 0x44]
push ecx
call fcn.1245b490
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 [0x1250f854]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x88]
lea ecx, [esp + 0x24]
push edx
mov dword [esp + 0x8c4], ebx
call fcn.12486370
lea ecx, [esp + 0x68]
mov byte [esp + 0x8c0], 1
call fcn.1248c430
lea ecx, [esp + 0x78]
mov byte [esp + 0x8c0], 2
call fcn.1248c430
mov eax, dword [0x12547264]
xor esi, esi
cmp eax, ebx
mov byte [esp + 0x8c0], 3
jle 0x1245b407
mov eax, dword [esp + 0x14]
xor edi, edi
mov ecx, dword [0x12547260]
cmp dword [edi + ecx + 8], eax
jne 0x1245adda
lea edx, [esp + 0x24]
push eax
push edx
call fcn.124577d0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], 1
push eax
call fcn.12457900
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
mov dword [esp + 0x18], ebp
jne 0x1245adf4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], ebx
push ecx
call fcn.12454870
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x1245adf0
mov eax, dword [esp + 0x14]
mov ecx, dword [0x12547264]
inc esi
add edi, 0x870
cmp esi, ecx
jl 0x1245ad87
jmp 0x1245b407
mov ebp, dword [esp + 0x18]
push 0x12547904
lea ecx, [esp + 0x20]
call fcn.12486d90
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x70]
call fcn.1248c4a0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x80]
call fcn.1248c4a0
lea eax, [esi + esi*2]
lea edx, [esp + 0x68]
push edx
push 0x12527e4c
lea eax, [eax + eax*4]
lea ebx, [eax + eax*8]
mov eax, dword [0x12547260]
shl ebx, 4
mov dword [esp + 0x68], ebx
lea ecx, [ebx + eax + 0x48]
push ecx
call fcn.12491440
mov eax, dword [0x12547260]
lea edx, [esp + 0x84]
push edx
push 0x12527e4c
lea ecx, [ebx + eax + 0x250]
push ecx
call fcn.12491440
mov eax, dword [esp + 0x84]
xor edi, edi
add esp, 0x18
xor esi, esi
cmp eax, edi
mov dword [esp + 0x48], esi
jle 0x1245b403
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x1c]
lea eax, [edx + esi*4]
push eax
call fcn.12486ca0
mov ecx, dword [0x12547260]
lea eax, [esp + 0x1c]
mov edx, dword [ebx + ecx + 8]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.12486110
lea ecx, [esp + 0x6c]
push ecx
call fcn.12459800
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c4], 4
call fcn.12486ca0
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c0], 3
call fcn.12486b10
mov ecx, 0x12547908
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], edi
call fcn.1245fb40
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push edx
push eax
mov ecx, 0x12547908
call fcn.1245fcf0
cmp eax, edi
jne 0x1245b3f2
mov ecx, dword [0x1250f854]
mov dword [esp + 0x10], ecx
push str.SELECT
lea ecx, [esp + 0x54]
mov byte [esp + 0x8c4], 5
call fcn.12486210
lea edx, [esp + 0x50]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x8c4], 6
call fcn.124877c0
lea ecx, [esp + 0x50]
mov byte [esp + 0x8c0], 5
call fcn.12486b10
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.12487760
push str._FROM
lea ecx, [esp + 0x50]
call fcn.12486210
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8c0], 7
push ecx
lea ecx, [esp + 0x14]
call fcn.124877c0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8c0], 5
call fcn.12486b10
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x10]
push edx
call fcn.12487760
push str._WHERE
lea ecx, [esp + 0x5c]
call fcn.12486210
lea eax, [esp + 0x58]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x8c4], 8
call fcn.124877c0
lea ecx, [esp + 0x58]
mov byte [esp + 0x8c0], 5
call fcn.12486b10
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.12487760
push str.___1_ORDER_BY
lea ecx, [esp + 0x3c]
call fcn.12486210
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x8c4], 9
call fcn.124877c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x8c0], 5
call fcn.12486b10
cmp dword [esp + 0x54], edi
jne 0x1245b05f
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x10]
push eax
call fcn.12487760
push str._DESC_
lea ecx, [esp + 0x40]
call fcn.12486210
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8c0], 0xa
push ecx
lea ecx, [esp + 0x14]
call fcn.124877c0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8c0], 5
call fcn.12486b10
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.12487760
push str._DESC_LIMIT_1
lea ecx, [esp + 0x44]
call fcn.12486210
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x8c4], 0xb
call fcn.124877c0
lea ecx, [esp + 0x40]
mov byte [esp + 0x8c0], 5
call fcn.12486b10
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
push edi
push ecx
push 0xffffffffffffffff
push edx
push eax
mov ecx, 0x12547908
call fcn.1245fd10
cmp eax, edi
jne 0x1245b3c3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push edi
push 0xffffffffffffffff
push ecx
push 1
push edx
mov ecx, 0x12547908
call fcn.1245fd70
mov ecx, 0x12547908
mov eax, dword [esp + 0x20]
push eax
call fcn.1245fda0
cmp eax, 0x64
jne 0x1245b3c3
mov ecx, dword [esp + 0x20]
push edi
push ecx
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x2c]
call fcn.12486370
lea edx, [esp + 0x28]
mov byte [esp + 0x8c0], 0xc
push edx
call fcn.1245cb40
mov ecx, 0x189
xor eax, eax
lea edi, [esp + 0x298]
push 0x103
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x29c]
push eax
push ecx
mov dword [esp + 0x2a0], 1
call fcn.1249fa35
mov edx, dword [esp + 0x34]
push 0x103
lea eax, [esp + 0x4b0]
push edx
push eax
call fcn.1249fa35
mov ecx, dword [esp + 0x94]
push 0x103
lea edx, [esp + 0x6c4]
mov eax, dword [ecx + esi*4]
push eax
push edx
call fcn.1249fa35
mov eax, dword [0x1254724c]
add esp, 0x28
mov esi, eax
cmp esi, eax
mov dword [esp + 0x30], esi
jl 0x1245b35f
lea ebp, [esi + 1]
test ebp, ebp
jne 0x1245b1d3
mov ecx, dword [0x12547248]
test ecx, ecx
je 0x1245b1c2
push ecx
mov dword [esp + 0x34], eax
call fcn.1249f776
add esp, 4
mov dword [0x12547248], ebp
xor eax, eax
mov dword [0x12547250], eax
mov dword [0x1254724c], eax
jmp 0x1245b35b
mov edx, dword [0x12547248]
test edx, edx
jne 0x1245b223
lea eax, [ebp + ebp*2]
shl eax, 4
add eax, ebp
lea edi, [ebp + eax*4]
shl edi, 3
push edi
call fcn.1249f8ef
mov edx, eax
mov ecx, edi
mov dword [0x12547248], 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 [0x12547250], ebp
mov dword [0x1254724c], ebp
jmp 0x1245b35b
mov edi, dword [0x12547250]
cmp ebp, edi
jg 0x1245b27f
cmp eax, ebp
jge 0x1245b26c
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 [0x1254724c], ebp
jmp 0x1245b35b
jle 0x1245b274
sub eax, ebp
mov dword [esp + 0x30], eax
mov dword [0x1254724c], ebp
jmp 0x1245b35b
mov ecx, dword [0x12547254]
test ecx, ecx
jne 0x1245b2ad
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x1245b2a0
mov ecx, 4
jmp 0x1245b2ad
cmp ecx, 0x400
jle 0x1245b2ad
mov ecx, 0x400
lea ebx, [ecx + edi]
cmp ebp, ebx
jl 0x1245b2b6
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.1249f8ef
mov edx, eax
mov eax, dword [0x1254724c]
mov esi, dword [0x12547248]
mov edi, edx
lea ecx, [eax + eax*2]
mov dword [esp + 0x30], 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 [0x1254724c]
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 [0x12547248]
push eax
call fcn.1249f776
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [0x12547250], ebx
mov ebx, dword [esp + 0x68]
add esp, 8
mov dword [0x12547248], ecx
mov dword [0x1254724c], ebp
mov ebp, dword [esp + 0x18]
mov ecx, dword [0x12547248]
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 + 0x28]
push edx
push eax
push str.QueryUrlByTitle__Add_wstrUrl:__s_title:__s_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x18
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], 1
mov byte [esp + 0x8c0], 5
call fcn.12486b10
mov esi, dword [esp + 0x48]
xor edi, edi
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, 0x12547908
call fcn.1245fee0
mov ecx, 0x12547908
mov edx, dword [esp + 0x34]
push edx
call fcn.1245fec0
lea ecx, [esp + 0x10]
mov byte [esp + 0x8c0], 3
call fcn.12486b10
mov eax, dword [esp + 0x6c]
inc esi
cmp esi, eax
mov dword [esp + 0x48], esi
jl 0x1245ae7f
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x78]
mov byte [esp + 0x8c0], 2
call fcn.1248c440
lea ecx, [esp + 0x68]
mov byte [esp + 0x8c0], 1
call fcn.1248c440
lea ecx, [esp + 0x24]
mov byte [esp + 0x8c0], 0
call fcn.12486b10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8c0], 0xffffffff
call fcn.12486b10
push ebx
push str.QueryUrlByTitle____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
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