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

Disassembly:
sub esp, 0x3c0
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
xor edi, edi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x50]
push edi
push 0x147
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], edi
call esi
cmp eax, 0xffffffff
jne 0x4024eb
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x3c0
ret 4
mov ecx, dword [ebp + 0x50]
push ebx
push edi
push eax
push 0x150
push ecx
call esi
lea edx, [esp + 0xc4]
push edx
push 0x104
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x48]
push 0xd
push eax
call esi
cmp dword [esp + 0x10], 0xffffffff
mov ebx, 1
jne 0x402538
mov edi, 0x4073e6
lea esi, [esp + 0xc4]
mov ecx, ebx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x402c73
xor edi, edi
mov ecx, dword [esp + 0x3d4]
push 0x104
lea eax, [esp + 0x1cc]
push eax
push 0xffffffffffffffff
push ecx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [esp + 0x18]
push edx
push edi
push edi
push 0x10
push edi
lea eax, [esp + 0x1dc]
push eax
call dword [sym.imp.ole32.dll_StgOpenStorage]
test eax, eax
jne 0x402c9a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x4075ec
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jne 0x402c8e
cmp byte [esp + 0x10], al
je 0x402721
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x10
push 0x4075dc
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x402721
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x74]
push edx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 2
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 4
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 5
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 6
mov ecx, dword [eax]
push 5
push eax
mov eax, dword [ecx + 0xc]
xor esi, esi
call eax
test eax, eax
jne 0x402700
test byte [esp + 0x10], bl
je 0x402646
cmp word [esp + 0x74], 0x1e
jne 0x402646
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0xc4]
push ecx
push edx
mov ecx, ebp
call fcn.004017d0
test eax, eax
jne 0x4026fe
test byte [esp + 0x10], 2
je 0x402677
cmp word [esp + 0x84], 0x1e
jne 0x402677
mov ecx, dword [esp + 0x8c]
lea eax, [esp + 0xc4]
push eax
push ecx
mov ecx, ebp
call fcn.004017d0
test eax, eax
jne 0x4026fe
test byte [esp + 0x10], 4
je 0x4026a4
cmp word [esp + 0x94], 0x1e
jne 0x4026a4
mov eax, dword [esp + 0x9c]
lea edx, [esp + 0xc4]
push edx
push eax
mov ecx, ebp
call fcn.004017d0
test eax, eax
jne 0x4026fe
test byte [esp + 0x10], 8
je 0x4026d1
cmp word [esp + 0xa4], 0x1e
jne 0x4026d1
mov edx, dword [esp + 0xac]
lea ecx, [esp + 0xc4]
push ecx
push edx
mov ecx, ebp
call fcn.004017d0
test eax, eax
jne 0x4026fe
test byte [esp + 0x10], 0x10
je 0x402700
cmp word [esp + 0xb4], 0x1e
jne 0x402700
mov ecx, dword [esp + 0xbc]
lea eax, [esp + 0xc4]
push eax
push ecx
mov ecx, ebp
call fcn.004017d0
test eax, eax
je 0x402700
mov esi, ebx
lea edx, [esp + 0x74]
push edx
push 5
call dword [sym.imp.ole32.dll_FreePropVariantArray]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, edi
jne 0x402c5b
test dword [esp + 0x10], 0xff00
je 0x402968
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push 0x10
push 0x4075cc
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x402968
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x74]
push edx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 0xe
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 2
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 0xc
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0xd
mov ecx, dword [eax]
push 5
push eax
mov eax, dword [ecx + 0xc]
xor esi, esi
mov dword [esp + 0x30], esi
call eax
test eax, eax
jne 0x402945
test dword [esp + 0x10], 0x100
mov edi, 0x1e
je 0x4027e6
cmp word [esp + 0x74], di
jne 0x4027e6
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0xc4]
push ecx
push edx
mov ecx, ebp
call fcn.004017d0
test eax, eax
je 0x4027e6
mov esi, ebx
jmp 0x402945
test dword [esp + 0x10], 0x200
je 0x40281c
cmp word [esp + 0x84], di
jne 0x40281c
mov ecx, dword [esp + 0x8c]
lea eax, [esp + 0xc4]
push eax
push ecx
mov ecx, ebp
call fcn.004017d0
test eax, eax
je 0x40281c
mov esi, ebx
jmp 0x402945
test dword [esp + 0x10], 0x400
je 0x402852
cmp word [esp + 0x94], di
jne 0x402852
mov eax, dword [esp + 0x9c]
lea edx, [esp + 0xc4]
push edx
push eax
mov ecx, ebp
call fcn.004017d0
test eax, eax
je 0x402852
mov esi, ebx
jmp 0x402945
cmp word [esp + 0xa4], 0x100c
jne 0x402945
cmp word [esp + 0xb4], 0x101e
jne 0x402945
xor ebp, ebp
cmp dword [esp + 0xac], ebp
mov dword [esp + 0x1c], ebp
jbe 0x402945
xor ebx, ebx
cmp ebp, 6
jne 0x402896
test dword [esp + 0x10], 0x800
jmp 0x4028c1
cmp ebp, 8
jne 0x4028a5
test dword [esp + 0x10], 0x2000
jmp 0x4028c1
cmp ebp, 0xa
jne 0x4028b4
test dword [esp + 0x10], 0x4000
jmp 0x4028c1
cmp ebp, 0xc
jne 0x4028c8
test dword [esp + 0x10], 0x1000
je 0x4028c8
mov ebx, 1
mov ecx, dword [esp + 0xb0]
mov esi, ebp
xor edi, edi
shl esi, 4
cmp dword [esi + ecx + 0x18], edi
jle 0x40292c
lea esp, [esp]
cmp dword [esp + 0x20], 0
jne 0x402917
test ebx, ebx
je 0x402917
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc4]
push edx
mov edx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x2c]
push edx
call fcn.004017d0
test eax, eax
je 0x402917
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0xb0]
add dword [esp + 0x1c], 1
add edi, 1
cmp edi, dword [eax + esi + 0x18]
jl 0x4028e0
add ebp, 2
cmp ebp, dword [esp + 0xac]
jb 0x402885
mov esi, dword [esp + 0x20]
mov ebx, 1
lea ecx, [esp + 0x74]
push ecx
push 5
call dword [sym.imp.ole32.dll_FreePropVariantArray]
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
test esi, esi
jne 0x402c5b
xor edi, edi
test dword [esp + 0x10], 0xff0000
je 0x402c82
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push 0x10
push 0x4075bc
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x402c82
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ecx + 0x2c]
xor esi, esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], esi
call eax
test eax, eax
jne 0x402c49
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
xor ebp, ebp
push ebp
lea edx, [esp + 0x3c]
push edx
push ebx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
jne 0x402a04
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x4029e9
push eax
call edi
mov dword [esp + 0x38], ebp
add esi, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
lea edx, [esp + 0x3c]
push edx
push ebx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x4029d8
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x1c]
xor ecx, ecx
mov eax, esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
xor ecx, ecx
mov eax, esi
mov edx, 0x10
mul edx
seto cl
mov dword [esp + 0x24], ebp
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov eax, esi
shl eax, 4
push eax
push 0
push edi
mov dword [esp + 0x58], edi
call sub.MSVCR80.dll_memset
lea ecx, [esi*8]
push ecx
push 0
push ebp
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
add esp, 0x20
push eax
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
xor ebx, ebx
push ebx
lea edx, [esp + 0x3c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x402b10
mov esi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
cmp dword [esp + 0x38], 0
je 0x402af7
mov dword [ebp + ebx*8], 0
mov eax, dword [esp + 0x38]
lea edx, [eax + 2]
jmp 0x402ab0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402ab0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
call esi
mov dword [ebp + ebx*8 + 4], eax
mov ecx, dword [esp + 0x38]
mov edx, eax
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x402ad0
mov edx, dword [esp + 0x38]
push edx
add ebx, 1
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x3c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x402a95
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push ebp
push ebx
push eax
call edx
test eax, eax
jne 0x402c07
test ebx, ebx
mov dword [esp + 0x48], eax
jle 0x402c23
mov ebp, dword [esp + 0x44]
add ebp, 8
movzx eax, word [ebp - 8]
cmp ax, 0x1e
jne 0x402b76
mov ecx, dword [ebp]
lea eax, [esp + 0xc4]
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004017d0
test eax, eax
je 0x402bda
mov dword [esp + 0x30], 1
jmp 0x402c03
cmp ax, 0x1f
jne 0x402bda
mov eax, dword [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402b82
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x402bda
mov edx, dword [ebp]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xc4]
push eax
push esi
call fcn.004017d0
test eax, eax
push esi
jne 0x402bf2
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, dword [esp + 0x48]
add eax, 1
add ebp, 0x10
cmp eax, ebx
mov dword [esp + 0x48], eax
jl 0x402b46
jmp 0x402c03
mov dword [esp + 0x34], 1
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov ebp, dword [esp + 0x20]
test ebx, ebx
jle 0x402c23
mov edi, ebx
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
lea esi, [ebp + 4]
mov ecx, dword [esi]
push ecx
call ebx
add esi, 8
sub edi, 1
jne 0x402c16
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
push esi
push edx
call dword [sym.imp.ole32.dll_FreePropVariantArray]
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
mov ebx, 1
xor edi, edi
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x30], edi
je 0x402c82
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x3c0
ret 4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x3c0
ret 4