Function at 0x40d070
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]
mov dword [ebp - 0x2d4], edx
cmp eax, 0x110
je 0x40d3e0
cmp eax, 0x111
jne 0x40d2d0
movzx eax, word [ebp - 0x2d4]
cmp eax, 0x65
je 0x40d5c0
ja 0x40d1c0
cmp eax, 2
je 0x40d59b
cmp eax, 0x64
jne 0x40d2e8
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], 0x7dc
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 0x40d129
add edx, 2
cmp word [edx], 0
jne 0x40d120
xor eax, eax
mov ecx, 0x20
jmp 0x40d13f
movzx ecx, word [eax + 0x411b48]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d138
cmp word [ebp - 0x216], 0
mov edx, ebx
je 0x40d169
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x40d160
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x41c6a0]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d170
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 0x40d6b0
mov dword [esp], edi
xor ebx, ebx
call sym._SetFocus_4
sub esp, 4
jmp 0x40d2d2
cmp eax, 0x66
je 0x40d648
cmp eax, 0x7dc
jne 0x40d2d0
mov edi, dword [ebp - 0x2d0]
mov dword [esp + 4], 0x64
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
jne 0x40d62d
mov dword [esp + 4], 0
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
mov ebx, eax
test eax, eax
je 0x40d698
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 0x40d861
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call sym._EnableWindow_8
sub esp, 8
lea esi, [esi]
nop
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, 1
jne 0x40d2d0
mov eax, dword [ebp - 0x2d0]
lea ebx, [ebp - 0x216]
xor edi, edi
lea esi, [ebp - 0x2b4]
mov dword [esp + 4], 0x7dc
mov dword [esp], eax
call sym._GetDlgItem_8
mov dword [ebp - 0x2b4], 0x9c
mov dword [ebp - 0x2d8], eax
sub esp, 8
mov dword [ebp - 0x2b0], 0x10
jmp 0x40d343
xor edx, edx
test eax, eax
je 0x40d510
fstp st(0)
mov dword [esi + edi*4 + 0x1c], edx
add edi, 1
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x148
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40d570
cmp edi, 0x20
je 0x40d570
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
je 0x40d530
cmp eax, 2
jne 0x40d330
fld qword [0x411d48]
fmulp st(1)
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 0x40d33c
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], 0x7dc
lea esi, [ebp - 0x2b4]
lea ebx, [ebp - 0x216]
mov dword [esp], eax
call sym._GetDlgItem_8
mov dword [ebp - 0x2b4], 0x9c
mov edi, eax
mov dword [ebp - 0x2d0], eax
sub esp, 8
mov eax, dword [0x41d704]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [esp], eax
mov dword [ebp - 0x2b0], 0x10
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 0x40d4ed
lea esi, [esi]
mov dword [esp + 0x14], 0x41c6a0
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 eax, dword [ebp - 0x2d0]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], eax
call sym._SendMessageW_16
movsx eax, word [ebp - 0x29a]
sub esp, 0x10
cmp eax, esi
jg 0x40d480
mov eax, dword [ebp - 0x2d0]
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
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
jmp 0x40d3ab
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 0x40d33c
mov eax, dword [0x41d704]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x447
mov dword [esp], eax
mov word [ebp - 0x29a], di
call sym._SendMessageW_16
sub esp, 0x10
mov eax, dword [ebp - 0x2d4]
mov ebx, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call sym._EndDialog_8
sub esp, 8
jmp 0x40d2d2
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], 0x7dc
xor ebx, ebx
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov esi, 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 0x40d2d2
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x144
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x40d2d2
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._EnableWindow_8
sub esp, 8
jmp 0x40d243
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], 0x7dc
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
xor ebx, ebx
call sym._SetFocus_4
sub esp, 4
jmp 0x40d2d2
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._EnableWindow_8
sub esp, 8
jmp 0x40d2d2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x146
mov dword [esp], edi
mov dword [ebp - 0x2b8], 0
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 0x40d86e
cmp dword [ebp - 0x2d4], 0x1f
jg 0x40d8f6
mov eax, dword [ebp - 0x2bc]
fld dword [ebp - 0x2b8]
mov dword [ebp - 0x2b4], 0xbf800000
cmp eax, 1
je 0x40da12
cmp eax, 2
je 0x40d9cc
test eax, eax
je 0x40da43
fstp st(0)
mov dword [ebp - 0x2d0], 0
mov eax, dword [ebp - 0x2d4]
test eax, eax
jle 0x40da5a
xor eax, eax
mov dword [ebp - 0x2d8], edi
lea esi, [ebp - 0x2b4]
mov edi, eax
jmp 0x40d78e
xor edx, edx
test eax, eax
je 0x40d84a
fstp st(0)
cmp dword [ebp - 0x2d0], edx
jle 0x40d931
add edi, 1
cmp dword [ebp - 0x2d4], edi
je 0x40d9c4
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x148
mov dword [esp], eax
call sym._SendMessageW_16
lea ecx, [ebp - 0x2bc]
mov edx, esi
mov eax, ebx
sub esp, 0x10
call dbg.number_from_string
mov eax, dword [ebp - 0x2bc]
fld dword [ebp - 0x2b4]
cmp eax, 1
je 0x40d810
cmp eax, 2
jne 0x40d767
fld qword [0x411d48]
fmulp st(1)
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 0x40d773
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 0x40d773
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
jmp 0x40d7dc
mov dword [esp + 4], 0
jmp 0x40d2b7
mov eax, dword [ebp - 0x2d0]
mov dword [esp], 0
mov dword [ebp - 0x2b4], 0x28
mov dword [ebp - 0x2b0], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2a8], 0x6a9
mov dword [ebp - 0x2ac], eax
sub esp, 4
mov dword [ebp - 0x2a4], global_lpCaption
lea eax, [ebp - 0x2b4]
mov dword [esp], eax
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
call sym._MessageBoxIndirectW_4
sub esp, 4
jmp 0x40d1ad
mov eax, dword [ebp - 0x2d0]
mov dword [esp], 0
mov dword [ebp - 0x2b4], 0x28
mov dword [ebp - 0x2b0], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2a8], 0x6b0
mov dword [ebp - 0x2ac], eax
sub esp, 4
jmp 0x40d8a4
mov ecx, edi
mov edi, dword [ebp - 0x2d8]
mov esi, edx
mov edx, dword [ebp - 0x2d0]
cmp esi, edx
je 0x40d1ad
mov dword [ebp - 0x2d4], ecx
fild dword [ebp - 0x2d0]
fdiv dword [0x411d38]
mov dword [esp + 0x14], 0x41c6a0
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 eax, dword [ebp - 0x2d4]
mov dword [esp + 0xc], ebx
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 0x40d1ad
mov edi, dword [ebp - 0x2d8]
jmp 0x40d94f
fld qword [0x411d48]
fmulp st(1)
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]
mov edx, dword [ebp - 0x2d4]
test edx, edx
jg 0x40d755
xor ecx, ecx
jmp 0x40d93b
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]
jmp 0x40d9fd
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
jmp 0x40d9d4
mov dword [ebp - 0x2d4], 0
jmp 0x40d94f