Function at 0x409e40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4457e6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x458220]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push esi
push edi
mov eax, dword [0x458220]
xor eax, esp
push eax
lea eax, [esp + 0x2d8]
mov dword fs:[0], eax
push 0x20a
xor ebx, ebx
lea eax, [esp + 0xc0]
push ebx
push eax
mov edi, ecx
call fcn.00434680
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 [esp + 0x20], eax
call esi
cmp dword [esp + 0x18], ebx
mov edi, eax
mov dword [esp + 0x14], edi
je 0x40a22f
push 0x104
lea eax, [esp + 0xc0]
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40a22f
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x48]
mov word [esp + 0x2c4], bx
call fcn.00401222
mov esi, 0x44909c
lea edi, [esp + 0x48]
mov dword [esp + 0x2e0], ebx
call fcn.0040c230
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
jne 0x409f8e
cmp dword [esp + 0x14], ebx
je 0x409f85
push 0x448dac
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x2c]
push 0x5091
push eax
call fcn.00402cc5
pop ecx
pop ecx
push 0x448e38
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x2e8], 1
call fcn.00403d6b
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x409f68
lea eax, [esp + 0x30]
push eax
push ebx
push 0xc2
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea esi, [esp + 0x34]
call fcn.004012ba
lea esi, [esp + 0x48]
jmp 0x40a2bb
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x409f9d
lea eax, [esp + 0x4c]
lea ebx, [eax + ecx*2]
lea esi, [esp + 0x48]
lea edi, [esp + 0x18]
call fcn.00408327
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
xor ebx, ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.0040b1f3
cmp word [eax], 0x5c
je 0x409fdf
push 0x448edc
mov eax, esi
push eax
call fcn.00403d6b
lea eax, [esp + 0x48]
push eax
call fcn.0040d4f0
test al, al
pop ecx
jne 0x40a0b1
lea eax, [esp + 0x48]
push eax
call fcn.0040dce0
test al, al
pop ecx
jne 0x40a0b1
cmp dword [esp + 0x14], ebx
je 0x409f85
lea eax, [esp + 0x2c]
push 0x508f
push eax
call fcn.00402cc5
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x50]
lea esi, [esp + 0x34]
mov byte [esp + 0x2e8], 2
call fcn.004041e2
push 0x44909c
mov eax, esi
push eax
call fcn.00403d6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40a059
and eax, 0xffff
or eax, 0x80070000
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0040cc60
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
lea esi, [esp + 0x34]
mov byte [esp + 0x2e8], 3
call fcn.004041e2
push ebx
push 1
lea esi, [esp + 0x6c]
mov byte [esp + 0x2e8], 2
call fcn.004012ba
push 0x448e38
lea eax, [esp + 0x30]
push eax
call fcn.00403d6b
push 0x448dac
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x409f59
push 7
pop eax
mov byte [esp + 0x80], bl
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x4c]
push eax
lea edi, [esp + 0x88]
mov byte [esp + 0x2e8], 5
call fcn.0040e8f0
test al, al
jne 0x40a1f9
cmp dword [esp + 0x14], ebx
je 0x40a1d1
lea eax, [esp + 0x2c]
push 0x5090
push eax
call fcn.00402cc5
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x50]
lea esi, [esp + 0x34]
mov byte [esp + 0x2e8], 6
call fcn.004041e2
push 0x44909c
mov eax, esi
push eax
call fcn.00403d6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0040cc60
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
mov byte [esp + 0x2e8], 7
call fcn.004041e2
push ebx
push 1
lea esi, [esp + 0x6c]
mov byte [esp + 0x2e8], 6
call fcn.004012ba
push 0x448e38
lea eax, [esp + 0x30]
push eax
call fcn.00403d6b
push 0x448dac
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x40a1b4
lea eax, [esp + 0x30]
push eax
push ebx
push 0xc2
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea esi, [esp + 0x34]
call fcn.004012ba
push ebx
push 1
lea esi, [esp + 0xa8]
call fcn.004012ba
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x2e4], bl
call fcn.0040e870
jmp 0x409f85
push ebx
push 1
lea esi, [esp + 0xa8]
call fcn.004012ba
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x2e4], bl
call fcn.0040e870
push ebx
push 1
lea esi, [esp + 0x50]
call fcn.004012ba
mov al, 1
jmp 0x40a2c5
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x64]
mov word [esp + 0x2c4], bx
call fcn.00401222
push 8
pop esi
mov dword [esp + 0x2e0], esi
cmp dword [esp + 0x78], ebx
jne 0x40a2b7
cmp edi, ebx
je 0x40a2b7
push 0x448dac
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x2c]
push 0x5091
push eax
call fcn.00402cc5
pop ecx
pop ecx
push 0x448e38
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x2e8], 9
call fcn.00403d6b
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x40a29d
lea eax, [esp + 0x30]
push eax
push ebx
push 0xc2
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea esi, [esp + 0x34]
call fcn.004012ba
lea esi, [esp + 0x64]
push ebx
push 1
call fcn.004012ba
xor al, al
mov ecx, dword [esp + 0x2d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.00434390
mov esp, ebp
pop ebp
ret