Function at 0x40a2c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4b4
mov eax, dword [0x4af480]
xor eax, esp
mov dword [esp + 0x4b0], eax
push ebx
push esi
push edi
mov edi, ecx
test edx, edx
jne case.default.0x40a3fb
mov esi, dword [ebp + 8]
cmp esi, 0x458
ja 0x40a3ec
je 0x40a3cd
cmp esi, 0x400
ja 0x40a3bc
je 0x40a354
mov eax, esi
sub eax, 1
je 0x40a329
sub eax, 1
je 0x40a332
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
call fcn.0040a050
test eax, eax
je case.default.0x40a3fb
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.0047d33b
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
call fcn.0047bca0
push 0x4b45b8
push 0
lea ecx, [esp + 0xb0]
call fcn.00416700
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.0047bc60
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
sub esi, 0x41e
je 0x40a3cd
sub esi, 1
jne case.default.0x40a3fb
call fcn.00409770
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x9cb2]
cmp eax, 3
ja case.default.0x40a3fb
jmp dword [eax*4 + 0x40a574]
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x40a4ff
push 2
push 0xffffffffffffffff
push 0x100c
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a4ff
cmp esi, 0x9cb2
jne 0x40a440
mov dword [esp + 0xc], edi
inc edi
jmp 0x40a447
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.0047d33b
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.00409f20
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [eax + 0x24]
call fcn.00409fc0
mov ecx, dword [esp + 0x4bc]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret