Function at 0x40a483
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x238]
sub esp, 0x2b8
mov eax, dword [0x44b4e8]
xor eax, ebp
mov dword [ebp + 0x234], eax
push ebx
push esi
push edi
push 0x20a
xor ebx, ebx
lea eax, [ebp + 0x28]
push ebx
push eax
mov edi, ecx
call fcn.0042f640
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0xc
push 0x3ec
push dword [edi + 4]
call esi
push 0x3eb
push dword [edi + 4]
mov dword [ebp - 0x54], eax
call esi
cmp dword [ebp - 0x54], ebx
mov esi, eax
mov dword [ebp - 0x50], esi
je 0x40a793
push 0x104
lea eax, [ebp + 0x28]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40a793
lea eax, [ebp + 0x28]
lea ecx, [ebp - 0x10]
mov word [ebp + 0x230], bx
call fcn.00401573
lea eax, [ebp - 0x10]
push 0x44016c
push eax
call fcn.0040c3b0
pop ecx
pop ecx
mov ecx, dword [ebp + 4]
cmp ecx, ebx
jne 0x40a582
cmp esi, ebx
je 0x40a57a
push 0x43fdb0
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x27fc
call fcn.00404e34
lea ecx, [ebp + 0xc]
call fcn.0040f87b
push 0x43fef8
lea eax, [ebp + 0xc]
push eax
call fcn.00404938
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x40a561
lea eax, [ebp + 0x10]
push eax
push ebx
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea esi, [ebp + 0xc]
call fcn.00401140
lea esi, [ebp - 0x10]
jmp 0x40a802
cmp dword [ebp + 8], 8
mov eax, dword [ebp - 0xc]
jae 0x40a58e
lea eax, [ebp - 0xc]
lea ebx, [eax + ecx*2]
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x58]
call fcn.004089d4
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
xor edi, edi
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], edi
call fcn.0040b60f
cmp word [eax], 0x5c
je 0x40a5c8
push 0x43ff9c
mov eax, esi
push eax
call fcn.00404938
lea eax, [ebp - 0x10]
push eax
call fcn.0040cdd6
test al, al
pop ecx
jne 0x40a68e
lea ecx, [ebp - 0x10]
call fcn.0040bdc5
test al, al
jne 0x40a68e
cmp dword [ebp - 0x50], edi
je 0x40a685
push 0x27fd
call fcn.00404e34
lea ecx, [ebp + 0xc]
call fcn.0040f87b
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x10]
lea esi, [ebp + 0xc]
call fcn.004021b2
push 0x44016c
mov eax, esi
push eax
call fcn.00404938
call fcn.0040d3ce
push eax
lea ecx, [ebp - 0x80]
call fcn.0040d3d9
pop ecx
push 0xffffffffffffffff
push edi
call fcn.004021b2
push edi
push 1
lea esi, [ebp - 0x80]
call fcn.00401140
push 0x43fef8
lea eax, [ebp + 0xc]
push eax
call fcn.00404938
push 0x43fdb0
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x40a66a
lea eax, [ebp + 0x10]
push eax
push edi
push 0xc2
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
lea esi, [ebp + 0xc]
call fcn.00401140
push edi
lea esi, [ebp - 0x10]
jmp 0x40a803
lea eax, [ebp - 0x4c]
call fcn.0040e48d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], di
call fcn.0040e4b6
test al, al
jne 0x40a771
cmp dword [ebp - 0x50], edi
je 0x40a759
push 0x27fe
call fcn.00404e34
lea ecx, [ebp + 0xc]
call fcn.0040f87b
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x10]
lea esi, [ebp + 0xc]
call fcn.004021b2
push 0x44016c
mov eax, esi
push eax
call fcn.00404938
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040d3d9
pop ecx
push 0xffffffffffffffff
push edi
call fcn.004021b2
push edi
push 1
lea esi, [ebp - 0x80]
call fcn.00401140
push 0x43fef8
lea eax, [ebp + 0xc]
push eax
call fcn.00404938
push 0x43fdb0
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x40a73e
lea eax, [ebp + 0x10]
push eax
push edi
push 0xc2
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
lea esi, [ebp + 0xc]
call fcn.00401140
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00401140
lea eax, [ebp - 0x4c]
call fcn.0040e4a0
jmp 0x40a685
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00401140
lea eax, [ebp - 0x4c]
call fcn.0040e4a0
push edi
push 1
lea esi, [ebp - 0x10]
call fcn.00401140
mov al, 1
jmp 0x40a80c
lea eax, [ebp + 0x28]
lea ecx, [ebp + 0xc]
mov word [ebp + 0x230], bx
call fcn.00401573
cmp dword [ebp + 0x20], ebx
jne 0x40a7ff
cmp esi, ebx
je 0x40a7ff
push 0x43fdb0
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x27fc
call fcn.00404e34
lea ecx, [ebp - 0x2c]
call fcn.0040f87b
push 0x43fef8
lea eax, [ebp - 0x2c]
push eax
call fcn.00404938
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40a7e6
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.00401140
lea esi, [ebp + 0xc]
push ebx
push 1
call fcn.00401140
xor al, al
mov ecx, dword [ebp + 0x234]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f583
add ebp, 0x238
leave
ret