Function at 0x404530
Capabilities:
Get graphical window text
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x4545c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x328], ecx
mov ecx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x2e4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x31c], edi
mov dword [ebp - 0x324], ecx
mov dword [ebp - 0x2f8], edx
cmp eax, 0x64
ja 0x404d9c
inc eax
mov dword [ecx], eax
lea eax, [ebp - 0x2f4]
xor esi, esi
push eax
mov dword [ebp - 0x300], esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [edi]
mov eax, dword [ecx]
lea edx, [ebp - 0x300]
push edx
push 0x4395e0
mov ebx, 1
push edi
mov dword [ebp - 0x2e0], esi
mov dword [ebp - 0x314], ebx
call eax
mov eax, dword [ebp - 0x300]
cmp eax, esi
je 0x4045cc
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
lea ecx, [ebp - 0x308]
push ecx
push edi
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x320], esi
call edx
mov eax, ebx
cmp dword [ebp - 0x308], eax
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x2e0]
jl 0x404c18
mov ebx, dword [ebp - 0x314]
cmp ebx, esi
je 0x404c18
lea eax, [ebp - 0x2f4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x2e0]
cmp eax, esi
je 0x40462e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x2e0], esi
cmp eax, esi
je 0x40466d
mov ecx, dword [eax]
lea edx, [ebp - 0x320]
push edx
lea edx, [ebp - 0x2f4]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x404c62
mov ecx, dword [ebp - 0x2ec]
mov ax, word [ebp - 0x2f4]
jmp 0x404685
mov ecx, dword [ebp - 0x310]
mov eax, 3
mov word [ebp - 0x2f4], ax
mov dword [ebp - 0x2ec], ecx
mov dword [ebp - 0x2fc], esi
cmp ax, 3
jne 0x4046d0
mov ebx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x31c]
mov edi, dword [edx]
lea eax, [ebp - 0x2fc]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ebp - 0x2f0]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x2e8]
push edx
mov edx, dword [edi + 0x24]
mov dword [eax + 0xc], ecx
call edx
mov eax, dword [ebp - 0x2fc]
jmp 0x4046de
cmp ax, 9
jne 0x40470d
mov eax, ecx
mov dword [ebp - 0x2fc], eax
cmp eax, esi
je 0x40470d
mov ecx, dword [eax]
lea edx, [ebp - 0x2e0]
push edx
push 0x4395d0
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 0x2fc]
cmp eax, esi
je 0x404707
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x2fc], esi
cmp dword [ebp - 0x2e0], esi
je 0x404744
lea eax, [ebp - 0x2f4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x2e0]
mov ecx, 3
mov word [ebp - 0x2f4], cx
mov dword [ebp - 0x2ec], esi
mov dword [edx], eax
jmp 0x404752
mov ecx, dword [ebp - 0x2e4]
mov edx, dword [ebp - 0x31c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x2e4]
mov edi, dword [eax]
xor ebx, ebx
cmp edi, esi
je 0x4047c5
lea ecx, [ebp - 0x33c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
lea eax, [ebp - 0x33c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2f0]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x2ec]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x2e8]
push edi
mov dword [eax + 0xc], ecx
call edx
test eax, eax
js 0x4047b8
cmp word [ebp - 0x33c], 3
jne 0x4047b8
mov ebx, dword [ebp - 0x334]
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, 0x8000
je 0x4047ec
mov eax, dword [ebp - 0x2e0]
cmp eax, esi
je 0x4047df
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov dword [ebp - 0x2e0], eax
jmp 0x404bf9
mov ecx, dword [ebp - 0x2e4]
mov edi, dword [ecx]
lea ebx, [ebp - 0x304]
lea eax, [ebp - 0x2f4]
mov dword [ebp - 0x304], esi
call fcn.00404440
cmp dword [ebp - 0x304], 0x2a
jne 0x404ba2
mov edi, dword [ebp - 0x2e0]
test edi, edi
je 0x404d9c
mov ebx, dword [ebp - 0x2f8]
push 0x100
push 0
push ebx
call fcn.0042c9e0
add esp, 0xc
lea ecx, [ebp - 0x2f4]
mov edx, edi
call fcn.004044b0
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404850
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x404ba2
push 0x44c710
mov esi, ebx
push esi
call fcn.004321a7
add esp, 8
test eax, eax
je 0x404d9c
push str.chrome:__settings
push esi
call fcn.004321a7
add esp, 8
test eax, eax
je 0x404d9c
push str.chrome:__extensions
push esi
call fcn.004321a7
add esp, 8
test eax, eax
je 0x404d9c
mov eax, dword [ebp - 0x2e0]
lea edx, [ebp - 0x318]
push edx
xor esi, esi
push eax
mov dword [ebp - 0x318], esi
call dword [sym.imp.OLEACC.dll_WindowFromAccessibleObject]
mov ecx, dword [ebp - 0x318]
push 2
push ecx
call dword [sym.imp.USER32.dll_GetAncestor]
push 0x7f
lea edx, [ebp - 0xdb]
push esi
push edx
mov edi, eax
mov byte [ebp - 0xdc], 0
call fcn.0042c9e0
mov ebx, dword [sym.imp.USER32.dll_GetClassNameA]
add esp, 0xc
push 0x80
lea eax, [ebp - 0xdc]
push eax
push edi
call ebx
push 0xfe
lea edx, [ebp - 0x1da]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x1dc], cx
call fcn.0042c9e0
add esp, 0xc
push 0x80
lea eax, [ebp - 0x1dc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, str.IEFrame
lea eax, [ebp - 0xdc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404963
test dl, dl
je 0x40495f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404963
add eax, 2
add ecx, 2
test dl, dl
jne 0x404943
xor eax, eax
jmp 0x404968
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x4049c9
mov edx, dword [ebp - 0x318]
xor eax, eax
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push edx
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
call ebx
mov ecx, str.Edit
lea eax, [ebp - 0x18]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4049c0
test dl, dl
je 0x4049bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4049c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4049a0
xor eax, eax
jmp 0x4049c5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x4049d0
mov edi, 1
jmp 0x4049d2
mov edi, esi
push 0x3f
lea eax, [ebp - 0x5b]
push esi
push eax
mov byte [ebp - 0x5c], 0
call fcn.0042c9e0
mov ebx, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x2e0]
add esp, 0xc
lea eax, [ebp - 0x30c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ebp - 0x2f0]
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 0x2ec]
mov dword [ebp - 0x30c], esi
mov edx, dword [ecx]
mov dword [eax + 8], ebx
mov ebx, dword [ebp - 0x2e8]
push ecx
mov ecx, dword [edx + 0x44]
mov dword [eax + 0xc], ebx
call ecx
test eax, eax
jne 0x404a99
mov eax, dword [ebp - 0x30c]
push esi
push esi
push 0x40
lea edx, [ebp - 0x5c]
push edx
push 0xffffffffffffffff
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x30c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, 0x44c790
lea eax, [ebp - 0x5c]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404a80
test dl, dl
je 0x404a7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404a80
add eax, 2
add ecx, 2
test dl, dl
jne 0x404a60
xor eax, eax
jmp 0x404a85
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x404a99
push str.CtrlE
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x404ba4
cmp edi, esi
je 0x404ba4
mov edi, dword [ebp - 0x2f8]
mov ecx, edi
mov eax, 0x457810
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404ad6
cmp dx, si
je 0x404ad2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404ad6
add eax, 4
add ecx, 4
cmp dx, si
jne 0x404ab0
xor eax, eax
jmp 0x404adb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x404b23
mov ecx, 0x457c10
lea eax, [ebp - 0x1dc]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404b16
cmp dx, si
je 0x404b12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404b16
add eax, 4
add ecx, 4
cmp dx, si
jne 0x404af0
xor eax, eax
jmp 0x404b1b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x404ba4
push 0xfe
lea ecx, [ebp - 0x2da]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x2dc], ax
call fcn.0042c9e0
lea edx, [ebp - 0x2dc]
add esp, 0xc
mov eax, edi
sub edx, edi
jmp 0x404b50
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x404b50
mov edx, 0x457810
mov eax, edi
sub edx, edi
jmp 0x404b70
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x404b70
push 4
push str.http
push edi
call fcn.00424694
add esp, 0xc
push 0x2f
test eax, eax
jne 0x404c6c
lea edx, [edi + 0x14]
push edx
jmp 0x404c6d
xor esi, esi
mov eax, dword [ebp - 0x2e0]
cmp eax, esi
je 0x404bf7
mov edx, dword [ebp - 0x2f8]
mov ecx, dword [ebp - 0x324]
mov esi, dword [ebp - 0x2e4]
push edx
mov edx, dword [ebp - 0x328]
push ecx
push edx
push esi
push eax
call fcn.00404530
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x2e0]
add esp, 0x14
cmp dword [esi], eax
je 0x404bf7
test eax, eax
je 0x404bef
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov dword [ebp - 0x2e0], eax
xor esi, esi
mov ecx, dword [ebp - 0x310]
inc ecx
mov dword [ebp - 0x310], ecx
cmp ecx, dword [ebp - 0x308]
jle 0x404601
mov ebx, dword [ebp - 0x314]
cmp eax, esi
je 0x404c24
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x2e0], esi
cmp eax, esi
je 0x404c3c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x2f4]
push eax
mov dword [ebp - 0x300], esi
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004243bb
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2e0]
xor ebx, ebx
jmp 0x404c18
push edi
call fcn.004246cd
add esp, 8
cmp eax, esi
je 0x404c7e
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x2dc]
push edx
lea ecx, [ebp - 0x1dc]
mov edx, edi
call fcn.00403fb0
add esp, 4
test eax, eax
je 0x404d9c
xor eax, eax
nop
movzx ecx, word [ebp + eax - 0x1dc]
mov word [eax + 0x457c10], cx
add eax, 2
cmp cx, si
jne 0x404ca0
push 0x44c710
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x2e0]
mov edx, dword [ecx]
mov edi, eax
push edi
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ebp - 0x2f0]
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 0x2ec]
mov dword [eax + 8], ebx
mov ebx, dword [ebp - 0x2e8]
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0x6c]
push ecx
call eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [ebp - 0x2e0]
lea ecx, [ebp - 0x2e4]
push ecx
push edx
mov dword [ebp - 0x2e4], esi
call dword [sym.imp.OLEACC.dll_WindowFromAccessibleObject]
mov eax, dword [ebp - 0x2e4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x2e4], esi
je 0x404d8f
mov edi, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x2e0]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [ebp - 0x2f0]
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x2ec]
mov dword [eax + 8], edi
mov edi, dword [ebp - 0x2e8]
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x64]
push ecx
call eax
mov ecx, dword [ebp - 0x2e4]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push esi
push 0xd
push 0x100
push ecx
call edi
mov edx, dword [ebp - 0x2e4]
push esi
push 0xd
push 0x101
push edx
call edi
mov edi, dword [ebp - 0x2f8]
xor eax, eax
call fcn.00404380
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004243bb
mov esp, ebp
pop ebp
ret