Function at 0x40c2b0
Capabilities:
Get graphical window text

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x2d8
mov eax, dword [ecx]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x2cc], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2d0], esi
mov esi, dword [ecx + 0xc]
cmp eax, 0x110
je 0x40c620
cmp eax, 0x111
jne 0x40c400
movzx eax, word [ebp - 0x2d0]
cmp eax, 0x65
je 0x40c770
ja 0x40c418
cmp eax, 2
je 0x40c5fa
cmp eax, 0x64
jne 0x40c528
lea ebx, [ebp - 0x216]
mov eax, 0x7dc
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call sym._GetDlgItem_8
mov edx, 0xff
sub esp, 8
mov edi, eax
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._GetWindowTextW_12
mov edx, ebx
sub esp, 0xc
cmp word [ebp - 0x216], 0
je 0x40c379
lea esi, [esi]
lea edi, [edi]
add edx, 2
cmp word [edx], 0
jne 0x40c370
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [eax + 0x410b64]
mov word [edx + eax], cx
add eax, 2
test ecx, ecx
jne 0x40c380
cmp word [ebp - 0x216], 0
mov edx, ebx
je 0x40c3a9
nop
add edx, 2
cmp word [edx], 0
jne 0x40c3a0
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [eax + 0x41b6a0]
mov word [edx + eax], cx
add eax, 2
test ecx, ecx
jne 0x40c3b0
mov dword [esp + 0xc], ebx
mov eax, 0xffffffff
mov dword [esp + 8], eax
mov eax, 0x158
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
mov esi, eax
inc eax
je 0x40c806
mov dword [esp], edi
xor ebx, ebx
call sym._SetFocus_4
sub esp, 4
jmp 0x40c402
xor ebx, ebx
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp eax, 0x66
je 0x40c720
cmp eax, 0x7dc
jne 0x40c400
mov edi, dword [ebp - 0x2cc]
mov eax, 0x64
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp], edi
mov eax, 0x65
mov dword [esp + 4], eax
call sym._GetDlgItem_8
mov dword [ebp - 0x2cc], eax
sub esp, 8
mov eax, 0x66
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._GetDlgItem_8
sub esp, 8
mov edi, eax
mov dword [esp], esi
call sym._GetWindowTextLengthW_4
sub esp, 4
test eax, eax
je 0x40c7da
mov dword [esp], ebx
mov eax, 1
mov dword [esp + 4], eax
call sym._EnableWindow_8
sub esp, 8
xor eax, eax
xor edx, edx
mov dword [esp + 0xc], eax
mov ecx, 0x146
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
mov ebx, eax
je 0x40c7f0
mov dword [esp], edi
mov eax, 1
mov dword [esp + 4], eax
call sym._EnableWindow_8
xor eax, eax
sub esp, 8
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x147
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
inc eax
je 0x40c95c
mov ebx, 1
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x2cc]
xor ebx, ebx
mov dword [esp], eax
call sym._EnableWindow_8
sub esp, 8
jmp 0x40c402
dec eax
jne 0x40c400
mov eax, dword [ebp - 0x2cc]
mov ebx, 0x7dc
mov esi, 0x9c
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x216]
mov edi, 0x10
mov dword [esp], eax
call sym._GetDlgItem_8
mov dword [ebp - 0x2b4], esi
lea esi, [ebp - 0x2b4]
mov dword [ebp - 0x2b0], edi
xor edi, edi
mov dword [ebp - 0x2d4], eax
sub esp, 8
jmp 0x40c5a8
cmp edi, 0x20
je 0x40c5d0
lea ecx, [ebp - 0x2b8]
mov eax, ebx
lea edx, [ebp - 0x2bc]
call sym._number_from_string
mov eax, dword [ebp - 0x2b8]
movss xmm0, dword [ebp - 0x2bc]
call sym._units_to_twips
mov dword [esi + edi*4 + 0x1c], eax
inc edi
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x2d4]
mov ecx, 0x148
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
inc eax
jne 0x40c578
movsx edi, di
mov dword [esp + 0xc], esi
xor eax, eax
mov edx, 0x447
mov dword [esp + 8], eax
mov eax, dword [0x41c704]
mov dword [esp + 4], edx
mov word [ebp - 0x29a], di
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov eax, dword [ebp - 0x2d0]
mov ebx, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call sym._EndDialog_8
sub esp, 8
jmp 0x40c402
mov eax, dword [ebp - 0x2cc]
mov ebx, 0x7dc
mov esi, 0x9c
mov dword [esp + 4], ebx
mov edi, 0x10
mov dword [esp], eax
call sym._GetDlgItem_8
mov dword [ebp - 0x2b4], esi
lea esi, [ebp - 0x2b4]
mov dword [ebp - 0x2b0], edi
xor edi, edi
mov dword [ebp - 0x2cc], eax
sub esp, 8
mov ebx, eax
mov dword [esp + 0xc], esi
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x43d
mov dword [esp + 4], eax
mov eax, dword [0x41c704]
mov dword [esp], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, 0xfe
mov dword [esp + 8], eax
mov eax, 0x141
mov dword [esp], ebx
lea ebx, [ebp - 0x216]
mov dword [esp + 4], eax
call sym._SendMessageW_16
sub esp, 0x10
cmp word [ebp - 0x29a], 0
jle 0x40c6fb
lea esi, [esi]
lea edi, [edi]
mov edx, dword [esi + edi*4 + 0x1c]
mov eax, ebx
inc edi
call sym._number_with_units
mov eax, dword [ebp - 0x2cc]
xor edx, edx
mov dword [esp + 0xc], ebx
mov ecx, 0x143
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._SendMessageW_16
movsx eax, word [ebp - 0x29a]
sub esp, 0x10
cmp eax, edi
jg 0x40c6c0
mov eax, dword [ebp - 0x2cc]
xor ebx, ebx
mov dword [esp], eax
call sym._SetFocus_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, 0x7dc
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x14b
mov dword [esp + 4], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], ebx
xor ebx, ebx
call sym._SetFocus_4
sub esp, 4
jmp 0x40c402
mov eax, dword [ebp - 0x2cc]
mov ebx, 0x7dc
xor edi, edi
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
mov dword [esp + 0xc], edi
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x147
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40c402
mov dword [esp + 8], eax
xor edx, edx
mov ecx, 0x144
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x40c402
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 4], eax
call sym._EnableWindow_8
sub esp, 8
jmp 0x40c49b
mov dword [esp], edi
xor ecx, ecx
mov dword [esp + 4], ecx
call sym._EnableWindow_8
sub esp, 8
jmp 0x40c402
mov dword [esp], edi
xor eax, eax
xor ecx, ecx
mov dword [esp + 8], eax
mov eax, 0x146
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x2b8], 0
call sym._SendMessageW_16
lea ecx, [ebp - 0x2bc]
lea edx, [ebp - 0x2b8]
mov dword [ebp - 0x2d0], eax
sub esp, 0x10
mov eax, ebx
call sym._number_from_string
test eax, eax
je 0x40c967
cmp dword [ebp - 0x2d0], 0x1f
jg 0x40c981
mov dword [ebp - 0x2b4], 0xbf800000
mov eax, dword [ebp - 0x2bc]
movss xmm0, dword [ebp - 0x2b8]
call sym._units_to_twips
mov edx, dword [ebp - 0x2d0]
test edx, edx
mov dword [ebp - 0x2cc], eax
jle 0x40c9ac
mov dword [ebp - 0x2d4], edi
lea esi, [ebp - 0x2b4]
xor eax, eax
mov edi, eax
jmp 0x40c8b5
inc edi
cmp dword [ebp - 0x2d0], edi
je 0x40c99b
mov dword [esp + 0xc], ebx
mov eax, 0x148
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2d4]
mov dword [esp + 8], edi
mov dword [esp], eax
call sym._SendMessageW_16
lea ecx, [ebp - 0x2bc]
mov edx, esi
mov eax, ebx
sub esp, 0x10
call sym._number_from_string
mov eax, dword [ebp - 0x2bc]
movss xmm0, dword [ebp - 0x2b4]
call sym._units_to_twips
cmp dword [ebp - 0x2cc], eax
jg 0x40c8a8
mov ecx, edi
mov edi, dword [ebp - 0x2d4]
mov esi, eax
mov eax, esi
mov esi, dword [ebp - 0x2cc]
cmp eax, esi
je 0x40c3ec
mov esi, ecx
mov edx, dword [ebp - 0x2cc]
mov eax, ebx
call sym._number_with_units
mov eax, 0x14a
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SetWindowTextW_8
sub esp, 8
jmp 0x40c3ec
xor esi, esi
mov dword [esp + 4], esi
jmp 0x40c509
mov eax, dword [ebp - 0x2cc]
mov ecx, 0x40
mov edx, 0x6a9
call sym._MessageBoxWithResStringW.constprop.0
jmp 0x40c3ec
mov eax, dword [ebp - 0x2cc]
mov ecx, 0x40
mov edx, 0x6b0
call sym._MessageBoxWithResStringW.constprop.0
jmp 0x40c3ec
mov edi, dword [ebp - 0x2d4]
mov esi, dword [ebp - 0x2d0]
jmp 0x40c91d
xor ecx, ecx
jmp 0x40c90b