Function at 0x408904
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x41c184
call fcn.00410ec8
sub esp, 0x170
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebx, [esi + 4]
push edi
mov ecx, ebx
call fcn.00409700
mov eax, dword [0x404158]
mov dword [ebp - 0x18], eax
push edi
push edi
push 0x31
mov dword [ebp - 4], edi
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, eax
mov dword [ebp - 0x3c], edx
push 0xe
mov dword [ebp - 0x78], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x74]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push eax
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x68], 0x2bc
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ec
mov dword [esi + 0x1c], eax
push dword [ebx]
call edi
push 0x3ea
mov dword [esi + 0x20], eax
push dword [ebx]
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x1c]
push 1
push eax
push 0x30
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x404158]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x11c]
push eax
push 0x40429c
mov byte [ebp - 4], 2
call fcn.00409890
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 8], 0
jne 0x4089e7
push dword [esi + 0x130]
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
call esi
push dword [ebx]
call esi
push 2
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x408fce
push 0x41c590
push 0x404294
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00409d27
add esp, 0x10
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 3
cmp dword [eax - 8], 0
jne 0x408a2a
push dword [esi + 0x130]
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
call esi
push dword [ebx]
call esi
push 2
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x408fc6
push 0x41c590
push 0x40428c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
call fcn.00409d27
add esp, 0x10
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 4
cmp dword [ecx - 8], 0
je 0x408ae7
mov eax, dword [0x41c504]
push 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconA]
test eax, eax
mov dword [esi + 0x180], eax
jne 0x408acc
and byte [ebp - 0x17c], al
push 0x40
pop ecx
lea edi, [ebp - 0x17b]
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x24]
mov ecx, 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [edx - 8]
lea edi, [eax + 1]
cmp edi, ecx
jg 0x408a96
lea ecx, [eax + 1]
push ecx
lea eax, [ebp - 0x17c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [0x41c504]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x17c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_ExtractAssociatedIconA]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esi + 0x180], eax
mov eax, dword [esi + 0x180]
test eax, eax
je 0x408ae7
push 0
push eax
push 0x170
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push dword [ebx]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
add eax, 2
lea ecx, [ebp - 0x18]
push eax
call fcn.00408275
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004082ee
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push 0x404288
call fcn.00409459
push dword [ebp - 0x18]
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
add eax, 2
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], eax
call fcn.00408275
push dword [ebp - 0x14]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004082ee
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push 0x404288
call fcn.00409459
push dword [ebp - 0x18]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x3ef
push dword [ebx]
call edi
lea ecx, [ebp - 0x38]
mov dword [esi + 0x24], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
sub dword [ebp - 0x38], 0x14
add dword [ebp - 0x30], 0x14
lea eax, [ebp - 0x38]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x408bc1
lea eax, [ebp - 0x30]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x2c]
push 4
sub eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x3fc
push dword [ebx]
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [0x404158]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x11c]
push eax
push 0x404280
mov byte [ebp - 4], 5
call fcn.00409890
test eax, eax
jge 0x408c31
push dword [esi + 0x130]
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
call esi
push dword [ebx]
call esi
push 2
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x408fb6
push dword [ebp - 0x28]
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
push 0
push 0xb1
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xb7
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x3f1
push dword [ebx]
call edi
push eax
lea ecx, [esi + 0x30]
call fcn.0040d3ff
push 0x64
push 0
push 0x406
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x402
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x404158]
mov dword [ebp - 0x14], eax
push 0x2710
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.004095ef
push dword [ebp - 0x14]
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [ebp - 0x14]
call fcn.00407ae9
push 0x3fd
push dword [ebx]
call edi
push 0
push eax
mov dword [esi + 0xb8], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x41c590
push dword [esi + 0xb8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x404158]
mov dword [ebp - 0x14], eax
mov ecx, 0x404234
mov byte [ebp - 4], 7
mov eax, ecx
test eax, eax
je 0x408d10
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x404234
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00408ff2
push dword [ebp - 0x14]
lea ecx, [esi + 0xbc]
mov byte [ebp - 4], 8
call fcn.0040b6b0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00407ae9
push 0x3fe
push dword [ebx]
call edi
lea edi, [esi + 0xbc]
push eax
mov ecx, edi
call fcn.0040d3ff
test eax, eax
je 0x408d5a
mov ecx, edi
call fcn.0040c0c3
and byte [esi + 0x108], 0
mov eax, dword [0x404158]
mov dword [ebp - 0x10], eax
push dword [esi + 0x114]
lea eax, [esi + 0x168]
mov byte [ebp - 4], 9
push 0x404224
push eax
call fcn.004090ec
mov edi, 0x404210
add esp, 0xc
mov eax, edi
test eax, eax
je 0x408d99
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
lea ecx, [esi + 0x168]
call fcn.0040902d
mov edi, 0x404204
mov eax, edi
test eax, eax
je 0x408db8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
lea ecx, [esi + 0x168]
call fcn.0040902d
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x11c]
push eax
push 0x404280
call fcn.00409890
mov edi, 0x404200
push edi
push 0x4041fc
lea ecx, [ebp - 0x10]
call fcn.00409459
test eax, eax
jne 0x408dde
push edi
push 0x4041f8
lea ecx, [ebp - 0x10]
call fcn.00409459
push 0x4041f4
push edi
lea ecx, [ebp - 0x10]
call fcn.00409459
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 0x168]
push eax
push dword [eax - 8]
call fcn.0040902d
mov ecx, 0x404210
mov eax, ecx
test eax, eax
je 0x408e35
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x404210
push ecx
push eax
lea ecx, [esi + 0x168]
call fcn.0040902d
mov ecx, 0x4041e4
mov eax, ecx
test eax, eax
je 0x408e59
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x4041e4
push ecx
push eax
lea ecx, [esi + 0x168]
call fcn.0040902d
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x11c]
push eax
push 0x40429c
call fcn.00409890
push edi
push 0x4041fc
lea ecx, [ebp - 0x10]
call fcn.00409459
test eax, eax
jne 0x408e7a
push edi
push 0x4041f8
lea ecx, [ebp - 0x10]
call fcn.00409459
push 0x4041f4
push edi
lea ecx, [ebp - 0x10]
call fcn.00409459
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 0x168]
push eax
push dword [eax - 8]
call fcn.0040902d
mov ecx, 0x404210
mov eax, ecx
test eax, eax
je 0x408ed1
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x404210
push ecx
push eax
lea ecx, [esi + 0x168]
call fcn.0040902d
mov ecx, 0x4041d0
mov eax, ecx
test eax, eax
je 0x408ef5
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x4041d0
push ecx
push eax
lea ecx, [esi + 0x168]
call fcn.0040902d
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x11c]
push eax
push 0x4041c0
call fcn.00409890
push edi
push 0x4041fc
lea ecx, [ebp - 0x10]
call fcn.00409459
test eax, eax
jne 0x408f16
push edi
push 0x4041f8
lea ecx, [ebp - 0x10]
call fcn.00409459
push 0x4041f4
push edi
lea ecx, [ebp - 0x10]
call fcn.00409459
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 0x168]
push eax
push dword [eax - 8]
call fcn.0040902d
mov edi, 0x404210
mov eax, edi
test eax, eax
je 0x408f68
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
lea ecx, [esi + 0x168]
call fcn.0040902d
push 0
lea ecx, [esi + 0x12c]
push dword [ebx]
call fcn.0040b969
cmp dword [esi + 0x118], 0
jne 0x408f96
mov ecx, esi
call fcn.00409fc3
jmp 0x408fae
push 0x404190
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [esi + 0x17c], 1
lea ecx, [ebp - 0x10]
call fcn.00407ae9
lea ecx, [ebp - 0x28]
call fcn.00407ae9
lea ecx, [ebp - 0x24]
call fcn.00407ae9
lea ecx, [ebp - 0x20]
call fcn.00407ae9
lea ecx, [ebp - 0x1c]
call fcn.00407ae9
lea ecx, [ebp - 0x18]
call fcn.00407ae9
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10