Function at 0x46a9d2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 8]
mov ecx, 0x4c1628
call fcn.0040dfe4
test al, al
jne 0x46aa02
mov eax, dword [ebp + 0xc]
and dword [eax], 0
jmp 0x46b0d9
mov ecx, dword [ebp - 8]
mov eax, dword [0x4c169c]
mov ebx, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
or dword [ebx], 0xffffffff
mov ecx, dword [eax]
xor edi, edi
movzx eax, byte [ecx + 0x90]
mov esi, dword [ecx]
mov dword [ebp - 8], ecx
mov dword [ebp + 0xc], esi
cmp eax, 0x11
jg 0x46ad96
je 0x46ace5
cmp eax, 0xa
jg 0x46ab3e
je 0x46aafe
sub eax, edi
je 0x46aab4
dec eax
je 0x46aa60
sub eax, 7
jne 0x46ae8d
push edi
push edi
push 0x408
jmp 0x46b0d0
push edi
push edi
push 0x188
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46ae8d
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0x18a
push esi
call edi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f6ba
pop ecx
mov esi, eax
push esi
push ebx
push 0x189
push dword [ebp + 0xc]
call edi
mov eax, esi
jmp 0x46b0db
push edi
push edi
push 0x147
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46ae8d
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0x149
push esi
call edi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f6ba
pop ecx
mov esi, eax
push esi
push ebx
push 0x148
jmp 0x46aaa8
xor edi, edi
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x130b
push esi
call edi
cmp byte [ebp + 0x10], 0
mov dword [ebx], eax
je 0x46b0d9
lea ecx, [ebp - 0x94]
push ecx
push eax
push 0x133c
push esi
mov dword [ebp - 0x94], 8
call edi
mov eax, dword [ebp - 0x7c]
jmp 0x46b0d7
cmp eax, 0xc
je 0x46acde
cmp eax, 0xd
jle 0x46ae8d
cmp eax, 0xf
jle 0x46abf4
cmp eax, 0x10
jne 0x46ae8d
xor edi, edi
push edi
push 9
push 0x110a
push esi
mov dword [ebx], edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x46b0d9
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 4
je 0x46abd3
push 0x2000
call fcn.0041f6ba
pop ecx
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
push edi
push 0x113e
push esi
mov dword [ebp - 0x1c], 0xfff
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], 1
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x46abc7
mov eax, ebx
jmp 0x46b0db
push ebx
call fcn.0041f72e
pop ecx
jmp 0x46b0d9
lea eax, [ebp - 0x30]
push eax
push edi
push 0x113e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x46b0d9
mov eax, dword [ebp - 0xc]
jmp 0x46b0d7
push dword [ecx + 0xc]
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x46b0d9
push 0x208
call fcn.0041f6ba
cmp byte [ebp + 0x10], 0
mov esi, dword [ebp - 8]
mov edi, eax
pop ecx
lea eax, [ebp - 0xc4]
mov dword [ebp + 0xc], edi
mov dword [ebp - 0xc4], 0x30
push eax
je 0x46ac6e
mov dword [ebp - 0xa0], edi
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc0], 0x10
push dword [esi + 0xc]
mov dword [ebp - 0x9c], 0x104
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
jne 0x46ac66
push dword [ebp + 0xc]
mov dword [ebx], edi
jmp 0x46abc8
mov eax, dword [ebp + 0xc]
jmp 0x46b0db
push 0
push dword [ebp + 8]
mov dword [ebp - 0xc0], 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
push edi
test eax, eax
je 0x46abc8
call fcn.0041f72e
pop ecx
mov ecx, dword [ebp - 0xb8]
mov al, cl
and al, 3
movsx eax, al
neg eax
sbb eax, eax
and eax, 0x40
add eax, 0x40
mov dword [ebx], ecx
test ecx, 0x8080
je 0x46acbb
or eax, 0x100
test cl, 8
je 0x46acc5
or eax, 1
jmp 0x46acc8
or eax, 4
test ecx, 0x1000
je 0x46b0d7
or eax, 0x200
jmp 0x46b0d7
and dword [ebx], edi
jmp 0x46b0d9
mov eax, dword [ecx + 0x10]
push 0xfffffffffffffff0
push dword [ecx + 0x34]
xor edi, edi
mov dword [ebp - 0x2c], eax
mov dword [ebx], edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp byte [ebp + 0x10], 0
mov dword [ebp + 8], eax
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x24], 0xf000
je 0x46ad33
push 0x2000
call fcn.0041f6ba
mov esi, dword [ebp - 8]
pop ecx
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
push edi
push 0x113e
push dword [esi + 0x34]
jmp 0x46aba5
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x30]
push eax
push edi
push 0x113e
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x46b0d9
mov ecx, dword [ebp - 0x28]
mov edx, 0x100
test dword [ebp + 8], edx
je 0x46ad70
mov eax, ecx
shr eax, 0xc
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
mov dword [ebx], eax
test cl, 2
je 0x46ad77
or dword [ebx], edx
test cl, 0x20
je 0x46ad82
or dword [ebx], 0x400
test cl, 0x10
je 0x46b0d9
or dword [ebx], 0x200
jmp 0x46b0d9
cmp eax, 0x12
je 0x46b0c7
cmp eax, 0x13
je 0x46b07e
cmp eax, 0x14
je 0x46af35
cmp eax, 0x15
je 0x46aec4
cmp eax, 0x18
jle 0x46ae8d
cmp eax, 0x1a
jle 0x46ae1b
cmp eax, 0x1c
jne 0x46ae8d
lea eax, [ebp - 0x74]
push eax
xor edi, edi
push edi
push 0x1001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x46ae14
push 0x16
call fcn.0041f6ba
movzx ecx, word [ebp - 0x6e]
push ecx
movzx ecx, word [ebp - 0x72]
push ecx
movzx ecx, word [ebp - 0x74]
push ecx
mov esi, eax
push str._d__02d__02d
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x46aaad
mov dword [ebx], edi
jmp 0x46b0d9
xor edi, edi
cmp byte [ebp + 0x10], 0
push edi
push edi
je 0x46ae6c
push 0xe
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f6ba
pop ecx
push esi
push eax
push dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x46ae64
push dword [ebp + 0x10]
mov dword [ebx], edi
jmp 0x46abc8
mov eax, dword [ebp + 0x10]
jmp 0x46b0db
push 0xf0
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx], eax
test eax, eax
jne 0x46b0d9
mov dword [ebx], 4
jmp 0x46b0d9
push edi
push edi
push 0xe
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f6ba
pop ecx
push edi
mov esi, eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x46aaad
lea esi, [ecx + 0x70]
push 4
mov ecx, esi
mov dword [ebp + 0x10], esi
call fcn.00402042
mov ecx, esi
test al, al
je 0x46af2b
call fcn.0040a59a
mov eax, dword [esi + 8]
xor ecx, ecx
mov eax, dword [eax + 4]
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f6ba
pop ecx
mov ecx, esi
mov edi, eax
call fcn.0040a59a
mov ecx, dword [esi + 8]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ecx + 4]
mov ecx, ebx
call fcn.0040a59a
mov edx, dword [ebx + 8]
lea ecx, [esi + 1]
mov edx, dword [edx]
push ecx
mov ecx, edi
call fcn.00404cf1
pop ecx
mov eax, edi
jmp 0x46b0db
call fcn.0040e4b9
jmp 0x46b0d7
or dword [ebx], 0xffffffff
push 0xffffffffffffffec
push dword [ecx + 0x34]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x34
mov dword [ebp + 0xc], eax
xor edi, edi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.00420f20
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x90]
push eax
push 0xffffffffffffffff
push 0x1053
push dword [esi + 0x34]
mov dword [ebp - 0x90], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
je 0x46b0d9
test byte [ebp + 0xc], 4
je 0x46afdb
cmp byte [ebp + 0x10], 0
je 0x46afdb
lea eax, [ebp - 0x64]
push eax
push edi
push 0x104b
push dword [esi + 0x34]
mov dword [ebp - 0x64], 8
mov dword [ebp - 0x54], 0xf000
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x46b0d9
mov eax, dword [ebp - 0x58]
shr eax, 0xc
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
jmp 0x46b0d7
push 0x2000
call fcn.0041f6ba
mov ebx, eax
pop ecx
mov edx, ebx
xor ecx, ecx
cmp cx, word [esi + 0x94]
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x4c], 0xfff
mov eax, edi
jmp 0x46b05b
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp + 0x10]
call fcn.00420eab
pop ecx
mov ecx, 0xffe
sub ecx, eax
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jle 0x46abc0
push ebx
call fcn.00420eab
pop ecx
lea ecx, [ebx + eax*2]
mov ax, word [0x4c163c]
mov word [ecx], ax
xor eax, eax
push ecx
mov word [ecx + 2], ax
call dword [sym.imp.USER32.dll_CharNextW]
movsx ecx, word [esi + 0x94]
mov edx, eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
inc eax
cmp eax, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x64]
push eax
push edi
push 0x104b
push dword [esi + 0x34]
mov dword [ebp - 0x50], edx
jl 0x46b008
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x46abc0
push 2
push 0xffffffffffffffff
push 0x100c
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
push 0x34
mov dword [ebx], eax
xor edi, edi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.00420f20
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push eax
push edi
push 0x104b
push dword [ebp + 0xc]
mov dword [ebp - 0x64], 4
call esi
neg eax
sbb eax, eax
and eax, dword [ebp - 0x44]
jmp 0x46b0d7
xor edi, edi
push edi
push edi
push 0x400
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc