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

Disassembly:
push 0xffffffffffffffff
push 0x4a6cf9
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xe4]
mov eax, dword [ebp + 0xf4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xb
push eax
call edi
mov ecx, dword [ebp + 0xf4]
push 0
push 0
push 0x1009
push ecx
call edi
lea edx, [esp + 0x18]
push edx
mov ebx, 0x4d0454
mov dword [esp + 0x1c], 8
call fcn.00467000
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
jbe 0x4026f0
mov edi, dword [0x4d2064]
lea ebx, [ebp + 0xf0]
lea esi, [ebx + 0xd8]
mov dword [ebx + 0xd0], ecx
mov dword [ebx + 0xd4], ecx
call fcn.0046c650
push 0
mov dword [ebx + 0xdc], edi
push 0
mov esi, ebx
mov dword [ebx + 0xe0], 0x666666
call fcn.00433450
mov ecx, dword [0x4d03a8]
sub ecx, dword [0x4d03a4]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
lea eax, [esp + 0x18]
add esi, edx
push eax
lea ebx, [ebp + 0x280]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], 0xfffffff6
call fcn.0046c230
cmp byte [eax], 0
je 0x4026ea
mov dword [esp + 0x1c], 0
test esi, esi
jbe 0x4026ea
mov edi, dword [esp + 0x1c]
mov esi, 0x4d02a0
call fcn.00466cd0
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x4026d7
cmp dword [ebx + 8], 8
jne 0x4026d7
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4026d7
push 0x4c
mov dword [esp + 0x30], edi
call fcn.0048b686
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xdc], edi
cmp eax, edi
je 0x4023ab
push eax
call fcn.0046ea50
jmp 0x4023ad
xor eax, eax
mov dword [esp + 0xdc], 0xffffffff
mov esi, 3
push 0x4c
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 1
call fcn.0048b686
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xdc], 1
cmp eax, edi
je 0x40240e
push eax
call fcn.0046ea50
jmp 0x402410
xor eax, eax
mov dword [esp + 0xdc], 0xffffffff
push 0x50
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0xc
mov dword [esp + 0x5c], 6
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], 2
call fcn.0048b686
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xdc], 2
cmp eax, edi
je 0x402472
mov esi, eax
call fcn.004029b0
mov esi, 3
jmp 0x402474
xor eax, eax
mov dword [esp + 0xdc], 0xffffffff
push 0x4c
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0xc
mov dword [esp + 0x7c], 6
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
call fcn.0048b686
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0xdc], 3
cmp esi, edi
je 0x4024e3
push esi
call fcn.0046ea50
mov dword [esi], vtable.CLfTextWndAsUnderline.0
jmp 0x4024e5
xor esi, esi
mov dword [esp + 0xdc], 0xffffffff
push 0x4c
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], 0xc
mov dword [esp + 0x9c], 6
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], 3
mov dword [esp + 0xb0], 4
call fcn.0048b686
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0xdc], 4
cmp esi, edi
je 0x402567
push esi
call fcn.0046ea50
mov dword [esi], vtable.CLfTextWndAsUnderline.0
mov eax, esi
jmp 0x402569
xor eax, eax
mov dword [esp + 0xdc], 0xffffffff
mov ecx, dword [ebp + 0xf4]
push edi
push edi
push 0x1004
push ecx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0xc
mov dword [esp + 0xc8], 6
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd8], 3
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebx]
push edx
push 5
lea ecx, [esp + 0x34]
push ecx
push eax
lea ecx, [ebp + 0xf0]
call fcn.00466bd0
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x30]
push eax
push edx
call fcn.00465db0
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [esp + 0x54]
push eax
call fcn.00465db0
mov eax, dword [ebx + 0x1c]
mov edi, dword [esp + 0x70]
push eax
push edi
call fcn.00465db0
mov esi, dword [ebx + 0x1c]
mov eax, edi
call fcn.00430be0
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x9cb5
call fcn.0046c8c0
mov dword [esp + 0xdc], 5
mov eax, dword [eax]
mov edx, dword [esp + 0x90]
push 0x800e
push eax
push edx
call fcn.00465760
or edi, 0xffffffff
mov dword [esp + 0xe8], edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40266a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x9dec
call fcn.0046c8c0
mov dword [esp + 0xdc], 6
mov eax, dword [eax]
mov esi, dword [esp + 0xb0]
push 0x8007
push eax
push esi
call fcn.00465760
mov dword [esp + 0xe8], edi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x4026c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx]
push ecx
lea eax, [ebp + 0x90]
call fcn.00465720
mov ecx, eax
mov edx, esi
call fcn.004686c0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x28]
jb 0x402350
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0
push 0
mov ebx, 7
mov dword [esp + 0xe4], ebx
mov ecx, dword [ebp + 0xf4]
push 0x1004
push ecx
call edi
mov edx, dword [0x4ce67c]
test eax, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
jne 0x40280f
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x9d79
mov byte [esp + 0xe0], 8
call fcn.0046c4a0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x402772
lea edx, [esp + 0x18]
push edx
mov eax, 0x9d79
call fcn.0046c580
mov edi, dword [esp + 0x18]
mov byte [esp + 0xdc], 9
mov eax, dword [0x4d2064]
push eax
lea ecx, [ebp + 0xf0]
mov eax, 0x4d264c
call fcn.00430af0
lea eax, [edi - 0x10]
mov byte [esp + 0xdc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x9d7a
mov byte [esp + 0xe0], 0xa
call fcn.0046c4a0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4027f8
lea edx, [esp + 0x18]
push edx
mov eax, 0x9d7a
call fcn.0046c580
mov esi, dword [esp + 0x18]
push esi
lea edi, [esp + 0x20]
mov byte [esp + 0xe0], 0xb
call fcn.0046afd0
add esp, 4
jmp 0x40286e
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x9d46
mov byte [esp + 0xe0], 0xc
call fcn.0046c4a0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x402846
lea edx, [esp + 0x18]
push edx
mov eax, 0x9d46
call fcn.0046c580
mov esi, dword [esp + 0x18]
push 0
push 0
mov byte [esp + 0xe4], 0xd
mov eax, dword [ebp + 0xf4]
push 0x1004
push eax
call edi
push eax
push esi
lea edi, [esp + 0x24]
call fcn.0046afd0
add esp, 8
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xdc], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402891
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x1c]
push ebx
lea ecx, [ebp + 0x1e4]
push ecx
call fcn.00465db0
mov eax, dword [ebp + 0x2a8]
mov ecx, dword [ebp + 0x2a4]
mov edx, dword [ebp + 0xb4]
push 1
push 0
push edx
mov dword [ebp + 0xe0], eax
mov dword [ebp + 0xdc], ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0xf4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x401c20
push ebp
push 0x1051
push eax
call edi
mov ecx, dword [ebp + 0xf4]
push 0
push 1
push 0xb
push ecx
call edi
lea esi, [ebp + 0xf0]
push esi
call fcn.0046ca10
mov ecx, dword [ebp + 0x2a0]
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 4]
imul eax, ecx
push eax
push 0
push 0x1014
push edx
call edi
mov eax, dword [ebp + 0xf4]
push 0x105
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
lea eax, [ebx - 0x10]
mov dword [esp + 0xdc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40295a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret 4