Function at 0x40a2e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4b4
mov eax, dword [0x4ae480]
xor eax, esp
mov dword [esp + 0x4b0], eax
push ebx
push esi
push edi
mov edi, ecx
test edx, edx
jne case.default.0x40a41b
mov esi, dword [ebp + 8]
cmp esi, 0x458
ja 0x40a40c
je 0x40a3ed
cmp esi, 0x400
ja 0x40a3dc
je 0x40a374
mov eax, esi
sub eax, 1
je 0x40a349
sub eax, 1
je 0x40a352
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
call fcn.0040a070
test eax, eax
je case.default.0x40a41b
push esi
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
call fcn.0047abb0
push 0x4b35d0
push 0
lea ecx, [esp + 0xb0]
call fcn.00416680
add esp, 8
mov dword [esp + 0x2c], 0x3ff
lea eax, [esp + 0xa8]
mov dword [esp + 0x1c], 0xa6
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x40], 0xa5
push eax
push edi
call fcn.0047ab70
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
sub esi, 0x41e
je 0x40a3ed
sub esi, 1
jne case.default.0x40a41b
call fcn.00409790
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x9cb2]
cmp eax, 3
ja case.default.0x40a41b
jmp dword [eax*4 + 0x40a594]
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x40a51f
push 2
push 0xffffffffffffffff
push 0x100c
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a51f
cmp esi, 0x9cb2
jne 0x40a460
mov dword [esp + 0xc], edi
inc edi
jmp 0x40a467
lea eax, [edi - 1]
mov dword [esp + 0xc], eax
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x70], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x6c]
push eax
push 0
push 0x104b
push ebx
mov dword [esp + 0x7c], 0xd
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], 3
mov dword [esp + 0x94], 0x104
call esi
lea eax, [esp + 0x2b0]
mov dword [esp + 0x10], 0xd
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x104b
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 3
mov dword [esp + 0x38], 0x104
call esi
lea eax, [esp + 0x6c]
mov dword [esp + 0x70], edi
push eax
push 0
push 0x104c
push ebx
call esi
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x104c
push ebx
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, edi
mov edx, dword [eax + 0x24]
call fcn.00409f40
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [eax + 0x24]
call fcn.00409fe0
mov ecx, dword [esp + 0x4bc]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret