Function at 0x402a70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], esi
push edi
mov edi, dword [ebp + 0x14]
cmp eax, 0x111
ja 0x402e8b
je 0x402c73
add eax, 0xfffffffe
cmp eax, 0x4c
ja case.0x402ea0.278
movzx eax, byte [eax + 0x403020]
jmp dword [eax*4 + 0x402ff0]
test ebx, ebx
je case.0x402ea0.278
movzx eax, word [0x4235f4]
push eax
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je case.0x402ea0.278
mov ecx, dword [eax]
mov dword [ebp - 0x18], 0
mov edx, dword [ecx + 0x18]
lea ecx, [ebp - 0x18]
push ecx
push edi
push ebx
push dword [ebp + 0xc]
mov ecx, eax
call edx
test al, al
je case.0x402ea0.278
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10
movzx eax, word [0x4235f4]
push eax
push dword [edi]
jmp 0x402ad3
test ebx, ebx
je case.0x402ea0.278
push dword [edi + 4]
movzx esi, word [0x4235f4]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x402b6c
mov ecx, dword [eax]
mov dword [ebp - 0x18], 0
mov edx, dword [ecx + 0x18]
lea ecx, [ebp - 0x18]
push ecx
push edi
push ebx
push dword [ebp + 0xc]
mov ecx, eax
call edx
test al, al
jne 0x402dca
mov esi, dword [ebp - 0x1c]
jmp case.0x402ea0.278
movzx eax, word [0x4235f4]
push eax
push dword [edi + 8]
jmp 0x402ad3
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 0x2c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ecx + 0x48], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [ecx + 0x4c], eax
mov eax, dword [ecx]
call dword [eax + 0xb0]
jmp case.0x402ea0.278
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 0x2c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x44], eax
mov eax, dword [ecx]
call dword [eax + 0xac]
jmp case.0x402ea0.278
test ebx, ebx
jne case.0x402ea0.278
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx + 0x8c], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx + 0x8c]
test eax, eax
jne 0x402c1d
push eax
push eax
push dword [ecx + 0x2c]
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx]
call dword [eax + 0x94]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx]
call dword [eax + 0x98]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10
mov eax, ebx
shr eax, 0x10
test eax, eax
jne 0x402d94
test edi, edi
jne 0x402d98
mov eax, dword [0x4235ec]
test eax, eax
jne 0x402cc1
push 0x30
call fcn.0040ca8a
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [eax + 4], edi
lea ecx, [eax + 0x18]
mov dword [eax + 0xc], edi
mov dword [eax], edi
push ecx
mov dword [eax + 8], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword [0x4235ec], eax
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x402d50
movzx eax, bx
sub eax, 0x7531
cmp byte [edx + 0x28], 0
mov dword [ebp - 0x18], eax
je 0x402cf0
lea eax, [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, dword [edx]
setl cl
xor eax, eax
cmp dword [ebp - 0x18], eax
setge al
test eax, ecx
je 0x402d40
cmp byte [edx + 0x28], 0
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x18], ecx
je 0x402d22
lea eax, [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x402d50
mov eax, dword [ecx]
call dword [eax + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10
cmp byte [edx + 0x28], 0
je 0x402d50
lea eax, [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, word [0x4235e4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x402e7f
cmp eax, 0x401300
je 0x402e7f
push edi
push ebx
push 0x111
push esi
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10
test edi, edi
je 0x402de0
movzx eax, word [0x4235f4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x402d50
mov ecx, dword [eax]
mov dword [ebp - 0x18], 0
mov edx, dword [ecx + 0x18]
lea ecx, [ebp - 0x18]
push ecx
push edi
push ebx
push 0x111
mov ecx, eax
call edx
test al, al
je 0x402d50
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10
movzx eax, bx
cmp eax, 1
jne 0x402e2f
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push 0
push 0xd
push 0x100
push edi
call esi
push 0
push 0xd
push 0x101
push edi
call esi
push 0
push 0xd
push 0x102
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 2
jne 0x402d50
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push 0
push 0x1b
push 0x100
push edi
call esi
push 0
push 0x1b
push 0x101
push edi
call esi
push 0
push 0x1b
push 0x102
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10
push edi
push ebx
push 0x111
jmp 0x402fd6
add eax, 0xfffffeed
cmp eax, 0x25
ja case.0x402ea0.278
movzx eax, byte [eax + 0x40307c]
jmp dword [eax*4 + 0x403070]
movzx eax, word [0x4235f4]
push eax
push edi
jmp 0x402ad3
mov eax, dword [0x4235ec]
test eax, eax
jne 0x402f06
push 0x30
call fcn.0040ca8a
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [eax + 4], 0
lea ecx, [eax + 0x18]
mov dword [eax + 0xc], 0
mov dword [eax], 0
push ecx
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword [0x4235ec], eax
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x18], edx
test edx, edx
je case.0x402ea0.278
cmp byte [edx + 0x28], 0
lea eax, [ebx - 0x3e9]
mov dword [ebp - 0x1c], eax
je 0x402f36
lea eax, [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x18]
lea eax, [ebx - 0x3e9]
xor ecx, ecx
cmp eax, dword [edx]
setl cl
xor eax, eax
cmp dword [ebp - 0x1c], eax
setge al
test eax, ecx
je 0x402f87
cmp byte [edx + 0x28], 0
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ebx*4 - 0xfa4]
mov dword [ebp - 0x18], ecx
je 0x402f69
lea eax, [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je case.0x402ea0.278
mov eax, dword [ecx]
call dword [eax + 0x24]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10
cmp byte [edx + 0x28], 0
je case.0x402ea0.278
lea eax, [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, word [0x4235e4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x402fd1
cmp eax, 0x401300
je 0x402fd1
push edi
push ebx
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10
push edi
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c95a
mov esp, ebp
pop ebp
ret 0x10