Function at 0x40bec0
Capabilities:
Get graphical window text

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
movzx eax, cx
push ebx
cmp eax, 0x64
push esi
push edi
push ebp
jg 0x40bee6
je 0x40bf51
cmp eax, 2
je 0x40bf35
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
cmp eax, 0x578
jg 0x40bf08
je 0x40c26f
cmp eax, 0x70
je 0x40c236
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
cmp eax, 0x579
je 0x40c345
cmp eax, 0x581
je 0x40c3ec
cmp eax, 0x582
je 0x40c45c
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
mov esi, dword [esp + 0x1c]
push 0
push esi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
mov esi, dword [esp + 0x1c]
push 0x578
push esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
call edi
mov ebp, eax
push 0x579
push esi
call edi
mov edi, eax
push 0x100
mov eax, dword [0x4493b0]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
push eax
push ebp
call ebx
push 0x400
push 0x448f80
push edi
call ebx
cmp byte [0x448f80], 0
jne 0x40bfb5
push 0x44b654
push 0x448f80
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x448f80
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x4493b0]
mov word [eax + 0x206], 0
cmp dword [0x4493a8], 0
je 0x40bfec
push 0x57b
mov ebx, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push esi
call ebx
test eax, eax
je 0x40bff2
mov eax, dword [0x4493b0]
or byte [eax + 0x206], 1
jmp 0x40bff2
mov ebx, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x57d
push esi
call ebx
test eax, eax
je 0x40c00a
mov eax, dword [0x4493b0]
or byte [eax + 0x206], 4
push 0x57c
push esi
call ebx
test eax, eax
je 0x40c022
mov eax, dword [0x4493b0]
or byte [eax + 0x206], 2
cmp dword [0x4493a8], 0
je 0x40c064
push 0x57e
push esi
call ebx
test eax, eax
je 0x40c043
mov eax, dword [0x4493b0]
or byte [eax + 0x206], 8
cmp dword [0x4493a8], 0
je 0x40c064
push 0x57f
push esi
call ebx
test eax, eax
je 0x40c064
mov eax, dword [0x4493b0]
or byte [eax + 0x206], 0x10
cmp dword [0x448e30], 0
je 0x40c080
mov eax, dword [0x448e30]
test byte [eax + 0x228], 1
je 0x40c080
add eax, 0x10
jmp 0x40c082
xor eax, eax
push eax
mov ecx, dword [0x4493b0]
push 0x101
mov eax, dword [0x448dd0]
add eax, 0x7644
push eax
push ecx
push 0
call fcn.0040dd50
test eax, eax
jne 0x40c0c0
push 1
push ebp
push 0x28
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
cmp byte [0x448f80], 0
je 0x40c0f2
push 0x448f80
call fcn.0040dd10
test eax, eax
jne 0x40c0f2
push 1
push edi
push 0x28
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
push 0x580
push esi
call ebx
test eax, eax
je 0x40c110
push 0x400
push 0x448f80
call fcn.00441413
add esp, 8
push 0x448f80
mov eax, dword [0x4493b0]
add eax, 0x101
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [0x4493b0]
test byte [ecx + 0x206], 4
je 0x40c157
push esi
call fcn.0040dac0
test eax, eax
jne 0x40c157
push 0
push esi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
mov eax, dword [0x4493b0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0xffffffffffffffff
push 0x158
push ebp
call ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x4493b0]
add eax, 0x101
push eax
push 0xffffffffffffffff
push 0x158
push edi
call ebx
mov ecx, dword [0x448dd0]
mov dword [esp + 0x10], eax
cmp dword [0x4493a8], 0
je 0x40c1ad
add ecx, 0x52ec
mov ebx, dword [0x448dd0]
add ebx, 0x5b30
jmp 0x40c1bf
add ecx, 0x659c
mov ebx, dword [0x448dd0]
add ebx, 0x6de0
cmp dword [esp + 0x14], 0xffffffff
je 0x40c1e1
mov eax, dword [0x4493b0]
mov ax, word [eax + 0x206]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
call fcn.0040e3d0
jmp 0x40c1ee
push ecx
mov eax, dword [0x4493b0]
push ebp
push eax
call fcn.0040e420
mov eax, dword [0x4493b0]
cmp byte [eax + 0x101], 0
je 0x40c211
cmp dword [esp + 0x10], 0xffffffff
je 0x40c211
mov eax, dword [esp + 0x10]
push ebx
push eax
push edi
call fcn.0040e480
jmp 0x40c21e
push ebx
mov eax, dword [0x4493b0]
push edi
push eax
call fcn.0040e4c0
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
cmp dword [0x4493a8], 1
mov eax, 0x1e
mov ecx, dword [0x448dc8]
adc eax, 0xffffffff
push eax
push 1
mov eax, dword [0x448dd0]
add eax, 0x20a
push eax
push ecx
call dword [sym.imp.USER32.dll_WinHelpA]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
shr ecx, 0x10
movzx eax, cx
cmp eax, 1
je 0x40c28e
cmp eax, 5
je 0x40c2f4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
mov esi, dword [esp + 0x1c]
push 1
push 0x64
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esp + 0x24]
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x4493a8], 0
mov ecx, dword [0x448dd0]
je 0x40c2d0
mov eax, dword [ecx + eax*4 + 0x52f0]
jmp 0x40c2d7
mov eax, dword [ecx + eax*4 + 0x65a0]
mov ax, word [eax + 0x102]
push eax
push esi
call fcn.0040da10
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
mov esi, dword [esp + 0x1c]
push 0x578
push esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, 1
sbb eax, eax
inc eax
push eax
push 0x64
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esp + 0x24]
push 0
push 0
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0x14f
push ecx
call ebp
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
shr ecx, 0x10
movzx eax, cx
cmp eax, 1
je 0x40c364
cmp eax, 5
je 0x40c3c9
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
mov esi, dword [esp + 0x24]
push 0
push 0
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x14f
push esi
call ebx
push 0
push 0
push 0x147
push esi
call ebx
push 0
mov ecx, dword [0x448dd0]
mov eax, dword [ecx + eax*4 + 0x5b34]
xor ecx, ecx
mov cx, word [eax + 0x106]
mov esi, dword [esp + 0x20]
and ecx, 1
push ecx
push 0xf1
push 0x580
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x24]
push 0
push 0
push 0x14f
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
push 0x24
mov eax, dword [0x4493b0]
mov esi, dword [esp + 0x20]
push 0xb6
push 0x95
push 0x101
push eax
push esi
call fcn.0043e000
test eax, eax
je 0x40c44d
mov eax, dword [0x4493b0]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x578
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
push 0x64
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0x64
push esi
call edi
push eax
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0x28
push esi
call ebp
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
mov esi, dword [esp + 0x1c]
push 0x35
push 0x96
push 0x105
push 0x448f80
push esi
call fcn.0043e180
test eax, eax
je 0x40c493
push 0x448f80
push 0x579
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc