Function at 0x403a85
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
lea ebx, [esi + 0x60]
xor eax, eax
mov edi, ebx
lea ebp, [esi + 0x164]
rep stosd dword es:[edi], eax
mov ecx, 8
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x1c4]
push 0x104
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
lea edi, [esi + 0x4dc]
call fcn.004046d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esi + 0x4dc]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00404990
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x28]
lea edi, [esi + 0x5e0]
mov byte [esp + 0x28], dl
call fcn.004046d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esi + 0x5e0]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00404990
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 6
jbe 0x403e5a
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x10
ja 0x403e5a
mov eax, dword [esi + 0x1c8]
push 0x20
push ebp
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x48], cl
lea ecx, [esp + 0x48]
call fcn.004046d0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x4c]
call fcn.00404990
mov dl, byte [esp + 0x13]
xor ebp, ebp
push ebp
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], dl
call fcn.004046d0
mov edi, 0x411380
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x411380
lea ecx, [esp + 0x6c]
call fcn.00404990
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], al
call fcn.004046d0
mov edi, 0x40e0a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40e0a0
lea ecx, [esp + 0x5c]
call fcn.00404990
lea ecx, [esp + 0x64]
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
mov ecx, esi
call fcn.00402ae0
mov edi, eax
push ebp
mov cl, byte [edi]
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
call fcn.004046d0
mov edx, dword [0x40c24c]
lea ecx, [esp + 0x14]
push edx
push ebp
push edi
call fcn.00404450
push 1
lea ecx, [esp + 0x58]
call fcn.004046d0
push 1
lea ecx, [esp + 0x68]
call fcn.004046d0
mov edx, dword [esi + 0x1a8]
inc edx
mov dword [esi + 0x1a8], edx
mov eax, edx
cmp eax, 2
jne 0x403d1f
mov al, byte [esp + 0x24]
sub esp, 0x10
mov edi, esp
mov dword [esi + 0x184], ebp
push ebp
mov ecx, edi
mov byte [edi], al
call fcn.004046d0
mov ecx, dword [0x40c24c]
lea edx, [esp + 0x34]
push ecx
push ebp
push edx
mov ecx, edi
call fcn.00404450
mov eax, dword [esi + 0x1cc]
push 0xa8
push 0x16
push eax
mov ecx, esi
call fcn.00403830
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x403c9c
mov eax, 0x40c248
push ebx
push eax
mov ecx, esi
call fcn.00402d10
mov ecx, dword [esi + 0x1c4]
push 0x411380
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], dl
call fcn.004046d0
mov eax, dword [0x40c24c]
lea ecx, [esp + 0x14]
push eax
push ebp
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x80], ebp
call fcn.00404450
mov eax, dword [esi + 0x1a0]
lea ecx, [esi + 0x198]
lea edx, [esp + 0x64]
push edx
push 1
push eax
call fcn.00404d60
mov ecx, dword [esi + 0x1cc]
push ebp
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea ecx, [esp + 0x68]
mov dword [esi + 0x1a8], ebp
call fcn.004046d0
jmp 0x403d98
cmp eax, 1
jne 0x403d98
push 0x1f4
mov dword [esi + 0x184], ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dl, byte [esp + 0x34]
sub esp, 0x10
mov edi, esp
push ebp
mov ecx, edi
mov byte [edi], dl
call fcn.004046d0
mov eax, dword [0x40c24c]
lea ecx, [esp + 0x44]
push eax
push ebp
push ecx
mov ecx, edi
call fcn.00404450
mov edx, dword [esi + 0x1cc]
push 0xa8
push 0x16
push edx
mov ecx, esi
call fcn.00403830
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x403d7d
mov eax, 0x40c248
push ebx
push eax
mov ecx, esi
call fcn.00402d10
mov eax, dword [esi + 0x1c4]
push 0x411380
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x403dbc
mov al, byte [ecx - 1]
test al, al
je 0x403db2
cmp al, 0xff
je 0x403db2
dec al
mov byte [ecx - 1], al
jmp 0x403dbc
dec ecx
push ecx
call fcn.00405f00
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x18], ebp
cmp ecx, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
je 0x403dec
mov al, byte [ecx - 1]
test al, al
je 0x403de2
cmp al, 0xff
je 0x403de2
dec al
mov byte [ecx - 1], al
jmp 0x403dec
dec ecx
push ecx
call fcn.00405f00
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x48], ebp
cmp ecx, ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
je 0x403e1c
mov al, byte [ecx - 1]
test al, al
je 0x403e12
cmp al, 0xff
je 0x403e12
dec al
mov byte [ecx - 1], al
jmp 0x403e1c
dec ecx
push ecx
call fcn.00405f00
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], ebp
cmp ecx, ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
je 0x403eae
mov al, byte [ecx - 1]
test al, al
je 0x403e48
cmp al, 0xff
je 0x403e48
dec al
mov byte [ecx - 1], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
dec ecx
push ecx
call fcn.00405f00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov cl, byte [esp + 0x34]
sub esp, 0x10
mov edi, esp
push 0
mov byte [edi], cl
mov ecx, edi
call fcn.004046d0
mov edx, dword [0x40c24c]
lea eax, [esp + 0x44]
push edx
push 0
push eax
mov ecx, edi
call fcn.00404450
mov ecx, dword [esi + 0x1cc]
push 0xa8
push 0x16
push ecx
mov ecx, esi
call fcn.00403830
push 1
lea ecx, [esp + 0x28]
call fcn.004046d0
push 1
lea ecx, [esp + 0x38]
call fcn.004046d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret