Function at 0x40cc50
Capabilities:
Get graphical window text

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x12c
movzx eax, cx
push ebx
cmp eax, 0x70
push esi
push edi
push ebp
jg 0x40cc7b
je 0x40cf88
sub eax, 0x66
cmp eax, 6
ja case.0x40cc85.2803
jmp dword [eax*4 + 0x40d26c]
sub eax, 0xaf0
cmp eax, 4
ja case.0x40cc85.2803
jmp dword [eax*4 + 0x40d288]
xor eax, eax
jmp 0x40d25f
call fcn.0040d340
mov esi, dword [esp + 0x140]
push esi
call fcn.0040d9a0
jmp 0x40d25a
cmp dword [0x4493a0], 0
je 0x40ccd6
push 0
push 0x23
push 0x12
push 0
call fcn.0043cd20
add esp, 0x10
cmp eax, 2
je 0x40d25a
cmp eax, 6
jne 0x40ccd6
call fcn.0040d340
mov esi, dword [esp + 0x140]
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40d25a
mov esi, dword [esp + 0x140]
push 0xaf0
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push 0x21
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x14]
push ecx
call fcn.0040d590
mov ebp, eax
push 0
test ebp, ebp
jne 0x40cd3f
push 0
push 0x11
push 0
call fcn.0043cd20
add esp, 0x10
push 1
push edi
push 0x28
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40cdc5
push ebp
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push 0x158
push edi
call ebx
push eax
push 0x144
push edi
call ebx
push ebp
call fcn.0040d770
push esi
call fcn.0040d3e0
mov eax, dword [0x448dd0]
add eax, 0x774c
cmp dword [eax], ebp
jne 0x40cd79
mov dword [eax], 0
push 0
push 0
push 0x146
push edi
call ebx
test eax, eax
jne 0x40cd99
push section..data
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
jmp 0x40cdbf
push 0
push 0
push 0x14e
push edi
call ebx
lea eax, [esp + 0x14]
push eax
push 0
push 0x148
push edi
call ebx
lea eax, [esp + 0x14]
push eax
call fcn.0040d590
push eax
push esi
call fcn.0040d2a0
push esi
call fcn.0040d9a0
jmp 0x40d25a
mov eax, dword [0x448dd0]
xor esi, esi
mov eax, dword [eax + 0x7748]
test eax, eax
je 0x40ce1e
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x448dd0]
mov ecx, dword [eax + 0x7748]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x448dd0]
mov dword [ecx + 0x7748], esi
mov ecx, dword [0x448dd0]
mov dword [ecx + 0x7750], esi
xor edi, edi
call fcn.00417580
mov esi, dword [esp + 0x140]
push 0xaf0
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0040d7d0
push esi
mov dword [0x4493a0], edi
call fcn.0040d9a0
push 1
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 0x28
push esi
call ebp
mov eax, dword [0x448dd0]
mov dword [eax + 0x774c], edi
jmp 0x40d25a
mov esi, dword [esp + 0x140]
push 0xaf0
push esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
call edi
mov ebp, eax
push 0x21
lea eax, [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
push eax
push ebp
call ebx
lea ecx, [esp + 0x38]
push 0x101
push ecx
push 0xaf1
push esi
call edi
push eax
call ebx
lea eax, [esp + 0x14]
push eax
call fcn.0040d590
test eax, eax
je 0x40cebc
push eax
call fcn.0040d770
push 0
push 0
push 0
push esi
call fcn.0040d960
lea ecx, [esp + 0x44]
lea edx, [esp + 0x20]
movzx eax, ax
push eax
push ecx
push edx
call fcn.0040d5f0
push esi
call fcn.0040d3e0
cmp dword [0x4493a4], 0
je 0x40cefd
lea eax, [esp + 0x14]
push eax
push 0
push 0x143
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.0040d9a0
mov eax, dword [0x44b624]
push eax
push 0x6b
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
xor eax, eax
mov dword [0x4493a4], eax
mov dword [0x449398], eax
jmp 0x40d25a
lea eax, [esp + 0x38]
push 0x24
mov esi, dword [esp + 0x144]
push 0xc2
push 0x95
push 0x101
push eax
push esi
call fcn.0043e000
test eax, eax
je 0x40d25a
push 0xaf1
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 0x28
push esi
call ebp
mov dword [0x4493a0], 0
jmp 0x40d25a
push 0x20
mov eax, dword [0x448dd0]
push 1
add eax, 0x20a
push eax
mov ecx, dword [0x448dc8]
push ecx
call dword [sym.imp.USER32.dll_WinHelpA]
jmp 0x40d25a
shr ecx, 0x10
movzx eax, cx
cmp eax, 1
je 0x40cfc4
cmp eax, 5
je 0x40d071
xor eax, eax
jmp 0x40d25f
mov esi, dword [esp + 0x140]
push 0xaf0
push esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
call edi
mov ebp, eax
lea eax, [esp + 0x14]
push eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x147
push ebp
call ebx
push eax
push 0x148
push ebp
call ebx
push 0x6b
push esi
call edi
mov ebx, eax
push 0
push ebx
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
call ebp
push 1
push 0x69
push esi
call edi
push eax
call ebp
push 1
push 0x6c
push esi
call edi
push eax
call ebp
push 1
push 0xaf1
push esi
call edi
push eax
call ebp
push 1
push 0xaf3
push esi
call edi
push eax
call ebp
cmp dword [0x4493a4], 0
je 0x40d05b
mov eax, dword [0x44b624]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [0x4493a4], 0
lea eax, [esp + 0x14]
push eax
call fcn.0040d590
push eax
push esi
call fcn.0040d2a0
jmp 0x40d25a
lea eax, [esp + 0x14]
push 0x21
mov ecx, dword [esp + 0x14c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov esi, dword [esp + 0x140]
push 0x6b
push esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
call edi
cmp byte [esp + 0x14], 0
mov ebx, eax
jne 0x40d0e7
push 0
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push ebx
call ebp
push 0
push 0x69
push esi
call edi
push eax
call ebp
push 0
push 0x6c
push esi
call edi
push eax
call ebp
push 0
push 0xaf1
push esi
call edi
push eax
call ebp
push 0
push 0xaf3
push esi
call edi
push eax
call ebp
push 0
push esi
call fcn.0040d2a0
jmp 0x40d25a
push 1
push 0x6c
push esi
call edi
push eax
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
call ebp
push 1
push 0xaf1
push esi
call edi
push eax
call ebp
push 1
push 0xaf3
push esi
call edi
push eax
call ebp
lea eax, [esp + 0x14]
push eax
call fcn.0040d590
mov dword [esp + 0x10], eax
test eax, eax
je 0x40d184
cmp dword [0x449398], 0
je 0x40d144
push 0xaf1
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
mov eax, 1
jne 0x40d146
xor eax, eax
push eax
push ebx
call ebp
push 1
push 0x69
push esi
call edi
push eax
call ebp
cmp dword [0x4493a4], 0
je 0x40d174
mov eax, dword [0x44b624]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [0x4493a4], 0
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0040d2a0
jmp 0x40d25a
cmp dword [0x449398], 0
je 0x40d1a5
push 0xaf1
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
mov eax, 1
jne 0x40d1a7
xor eax, eax
push eax
push ebx
call ebp
push 0
push 0x69
push esi
call edi
push eax
call ebp
cmp dword [0x4493a4], 0
jne 0x40d1d5
mov eax, dword [0x44b620]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [0x4493a4], 1
push 0
push esi
call fcn.0040d2a0
jmp 0x40d25a
shr ecx, 0x10
cmp cx, 0x300
je 0x40d1ed
xor eax, eax
jmp 0x40d25f
cmp dword [0x44939c], 0
je 0x40d202
mov dword [0x44939c], 0
jmp 0x40d25a
mov eax, dword [esp + 0x148]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jne 0x40d218
push 0
jmp 0x40d21a
push 1
mov esi, dword [esp + 0x144]
push 0x6b
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
call ebp
mov dword [0x449398], 1
jmp 0x40d25a
mov esi, dword [esp + 0x140]
push 1
push 0x6b
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
call ebp
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x12c
ret 0xc