Function at 0x40d1f0
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, 0x2f8
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x2d0], eax
mov eax, dword [ecx + 4]
cmp eax, 0x110
je 0x40d3b0
cmp eax, 0x111
jne 0x40d4ce
movzx eax, dx
cmp eax, 0x65
je 0x40d658
ja 0x40d4d8
cmp eax, 2
je 0x40d61d
cmp eax, 0x64
je 0x40d720
cmp eax, 1
jne 0x40d4ce
mov dword [ebp - 0x2d8], edx
lea ebx, [ebp - 0x216]
xor edi, edi
lea esi, [ebp - 0x2b4]
mov dword [esp + 4], 0x7dc
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call sym._GetDlgItem_8
mov edx, dword [ebp - 0x2d8]
mov dword [ebp - 0x2b4], 0x9c
mov dword [ebp - 0x2d4], eax
sub esp, 8
mov dword [ebp - 0x2b0], 0x10
mov dword [ebp - 0x2dc], edx
jmp 0x40d311
cmp eax, 2
je 0x40d648
xor edx, edx
test eax, eax
jne 0x40d308
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
fnstcw word [ebp - 0x2ca]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x2d8]
fldcw word [ebp - 0x2ca]
mov edx, dword [ebp - 0x2d8]
jmp 0x40d30a
fstp st(0)
mov dword [esi + edi*4 + 0x1c], edx
add edi, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x148
mov eax, dword [ebp - 0x2d4]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40d5e0
cmp edi, 0x20
je 0x40d5e0
lea ecx, [ebp - 0x2b8]
lea edx, [ebp - 0x2bc]
mov eax, ebx
call dbg.number_from_string
mov eax, dword [ebp - 0x2b8]
fld dword [ebp - 0x2bc]
cmp eax, 1
jne 0x40d2b0
fnstcw word [ebp - 0x2ca]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x2d8]
fldcw word [ebp - 0x2ca]
mov edx, dword [ebp - 0x2d8]
jmp 0x40d30a
mov dword [esp + 4], 0x7dc
mov eax, dword [ebp - 0x2d0]
lea esi, [ebp - 0x2b4]
lea ebx, [ebp - 0x216]
mov dword [esp], eax
call sym._GetDlgItem_8
mov dword [ebp - 0x2b4], 0x9c
sub esp, 8
mov dword [ebp - 0x2d0], eax
mov edi, eax
mov dword [ebp - 0x2b0], 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov eax, dword [0x41a704]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], edi
xor edi, edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xfe
mov dword [esp + 4], 0x141
call sym._SendMessageW_16
mov eax, esi
mov esi, edi
sub esp, 0x10
cmp word [ebp - 0x29a], 0
mov edi, eax
jle 0x40d4bd
lea esi, [esi]
mov dword [esp + 0x14], 0x4196a0
fild dword [edi + esi*4 + 0x1c]
add esi, 1
fdiv dword [0x411d38]
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
mov dword [esp], ebx
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call sym._SendMessageW_16
movsx eax, word [ebp - 0x29a]
sub esp, 0x10
cmp eax, esi
jg 0x40d450
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call sym._SetFocus_4
sub esp, 4
xor eax, eax
jmp 0x40d637
cmp eax, 0x66
je 0x40d6c8
cmp eax, 0x7dc
jne 0x40d4ce
mov dword [esp + 4], 0x64
mov edi, dword [ebp - 0x2d0]
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp], edi
mov dword [esp + 4], 0x65
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x2d0], eax
mov dword [esp], edi
mov dword [esp + 4], 0x66
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 0x40d815
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._EnableWindow_8
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x146
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
je 0x40d7fb
mov dword [esp + 4], 1
mov dword [esp], edi
call sym._EnableWindow_8
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40d9d3
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call sym._EnableWindow_8
xor eax, eax
sub esp, 8
jmp 0x40d637
mov edx, dword [ebp - 0x2dc]
mov word [ebp - 0x29a], di
mov dword [ebp - 0x2d4], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x447
mov eax, dword [0x41a704]
mov dword [esp], eax
call sym._SendMessageW_16
mov edx, dword [ebp - 0x2d4]
sub esp, 0x10
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call sym._EndDialog_8
mov eax, 1
sub esp, 8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
fld qword [0x411d48]
fmulp st(1)
jmp 0x40d2d1
mov dword [esp + 4], 0x7dc
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40d4ce
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x144
mov dword [esp], ebx
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
jmp 0x40d637
mov dword [esp + 4], 0x7dc
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x14b
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], ebx
call sym._SetFocus_4
xor eax, eax
sub esp, 4
jmp 0x40d637
mov dword [esp + 4], 0x7dc
mov eax, dword [ebp - 0x2d0]
lea ebx, [ebp - 0x216]
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov edi, eax
mov dword [esp + 8], 0xff
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 0x40d771
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40d768
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x411b40]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d778
cmp word [ebp - 0x216], 0
mov edx, ebx
je 0x40d7a9
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x40d7a0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x4196a0]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d7b0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x158
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
mov esi, eax
cmp eax, 0xffffffff
je 0x40d82d
mov dword [esp], edi
call sym._SetFocus_4
xor eax, eax
sub esp, 4
jmp 0x40d637
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._EnableWindow_8
xor eax, eax
sub esp, 8
jmp 0x40d637
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._EnableWindow_8
sub esp, 8
jmp 0x40d557
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x146
mov dword [esp], edi
call sym._SendMessageW_16
lea ecx, [ebp - 0x2bc]
lea edx, [ebp - 0x2b8]
mov dword [ebp - 0x2d4], eax
sub esp, 0x10
mov eax, ebx
call dbg.number_from_string
test eax, eax
je 0x40d9f3
cmp dword [ebp - 0x2d4], 0x1f
jg 0x40da7b
mov eax, dword [ebp - 0x2bc]
fld dword [ebp - 0x2b8]
mov dword [ebp - 0x2b4], 0xbf800000
cmp eax, 1
je 0x40db50
cmp eax, 2
je 0x40dbd4
test eax, eax
je 0x40db97
fstp st(0)
mov dword [ebp - 0x2d0], 0
mov esi, dword [ebp - 0x2d4]
test esi, esi
jle 0x40dbde
lea esi, [ebp - 0x2b4]
xor eax, eax
mov dword [ebp - 0x2d8], esi
mov esi, eax
jmp 0x40d949
cmp eax, 2
je 0x40d9c6
xor edx, edx
test eax, eax
jne 0x40d92c
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
fnstcw word [ebp - 0x2ca]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x2dc]
fldcw word [ebp - 0x2ca]
mov edx, dword [ebp - 0x2dc]
jmp 0x40d92e
fstp st(0)
cmp dword [ebp - 0x2d0], edx
jle 0x40db31
add esi, 1
cmp dword [ebp - 0x2d4], esi
jle 0x40dab6
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0x148
mov dword [esp], edi
call sym._SendMessageW_16
mov edx, dword [ebp - 0x2d8]
lea ecx, [ebp - 0x2bc]
mov eax, ebx
sub esp, 0x10
call dbg.number_from_string
mov eax, dword [ebp - 0x2bc]
fld dword [ebp - 0x2b4]
cmp eax, 1
jne 0x40d8da
fnstcw word [ebp - 0x2ca]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x2dc]
fldcw word [ebp - 0x2ca]
mov edx, dword [ebp - 0x2dc]
jmp 0x40d92e
fld qword [0x411d48]
fmulp st(1)
jmp 0x40d8fb
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call sym._EnableWindow_8
xor eax, eax
sub esp, 8
jmp 0x40d637
mov dword [ebp - 0x2b4], 0x28
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x2b0], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2a8], 0x6a9
mov dword [ebp - 0x2ac], eax
sub esp, 4
mov dword [ebp - 0x2a4], 0x411d18
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2a0], 0x40
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov dword [esp], eax
call sym._MessageBoxIndirectW_4
sub esp, 4
jmp 0x40d7e9
mov dword [ebp - 0x2b4], 0x28
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x2b0], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2a8], 0x6b0
mov dword [ebp - 0x2ac], eax
sub esp, 4
jmp 0x40da29
mov dword [ebp - 0x2d4], esi
mov dword [esp + 0x14], 0x4196a0
fild dword [ebp - 0x2d0]
fdiv dword [0x411d38]
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
mov dword [esp], ebx
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x2d4]
mov dword [esp + 4], 0x14a
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._SetWindowTextW_8
sub esp, 8
jmp 0x40d7e9
mov dword [ebp - 0x2d4], esi
mov esi, edx
mov edx, dword [ebp - 0x2d0]
cmp esi, edx
je 0x40d7e9
jmp 0x40dabc
fnstcw word [ebp - 0x2ca]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x2d0]
fldcw word [ebp - 0x2ca]
mov edx, dword [ebp - 0x2d4]
test edx, edx
jg 0x40d8c8
xor eax, eax
mov dword [ebp - 0x2d4], eax
jmp 0x40db39
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
fnstcw word [ebp - 0x2ca]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x2d0]
fldcw word [ebp - 0x2ca]
jmp 0x40db7f
fld qword [0x411d48]
fmulp st(1)
jmp 0x40dba9
xor ecx, ecx
mov dword [ebp - 0x2d4], ecx
jmp 0x40dabc