Function at 0x40db50
Capabilities:
Get graphical window text

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x2d0
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x2bc], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2c0], edx
cmp eax, 0x110
je 0x40dcb0
cmp eax, 0x111
jne 0x40ddea
movzx eax, word [ebp - 0x2c0]
cmp eax, 0x65
je 0x40e098
ja 0x40de00
cmp eax, 2
je 0x40e06e
cmp eax, 0x64
jne 0x40df20
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 4], 0x7dc
lea ebx, [ebp - 0x20e]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov edi, eax
mov dword [esp + 8], 0xff
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextW]
mov edx, ebx
sub esp, 0xc
cmp word [ebp - 0x20e], 0
je 0x40dc11
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40dc08
xor eax, eax
mov ecx, 0x20
jmp 0x40dc27
movzx ecx, word [eax + 0x41c348]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40dc20
cmp word [ebp - 0x20e], 0
mov edx, ebx
je 0x40dc49
nop
add edx, 2
cmp word [edx], 0
jne 0x40dc40
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x411060]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40dc50
mov dword [esp + 0xc], ebx
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x158
mov dword [esp], edi
call esi
mov dword [ebp - 0x2c0], eax
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40e1a2
mov dword [esp], edi
call dword [sym.imp.user32.dll_SetFocus]
xor ecx, ecx
sub esp, 4
jmp 0x40ddec
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 4], 0x7dc
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
lea edx, [ebp - 0x2ac]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x2ac], 0x9c
mov dword [ebp - 0x2bc], eax
mov edi, eax
mov eax, dword [0x410cb0]
sub esp, 8
mov dword [ebp - 0x2b8], edx
mov dword [esp + 0xc], edx
mov dword [ebp - 0x2a8], 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xfe
mov dword [esp + 4], 0x141
mov dword [esp], edi
call esi
sub esp, 0x10
cmp word [ebp - 0x292], 0
jle 0x40ddd8
xor edi, edi
mov eax, esi
lea ebx, [ebp - 0x20e]
mov esi, edi
mov edi, eax
lea esi, [esi]
mov dword [esp + 0x14], 0x411060
mov eax, dword [ebp - 0x2b8]
pxor xmm0, xmm0
cvtsi2ss xmm0, dword [eax + esi*4 + 0x1c]
mov dword [esp + 8], str._.2f__s
inc esi
divss xmm0, dword [0x413630]
mulss xmm0, dword [0x413634]
mov dword [esp], ebx
mov dword [esp + 4], 0xff
divss xmm0, dword [0x413638]
cvtss2sd xmm0, xmm0
movsd qword [esp + 0xc], xmm0
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], eax
call edi
movsx eax, word [ebp - 0x292]
sub esp, 0x10
cmp eax, esi
jg 0x40dd58
mov eax, dword [ebp - 0x2bc]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetFocus]
sub esp, 4
xor ecx, ecx
lea esp, [ebp - 0x10]
mov eax, ecx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp eax, 0x66
je 0x40e130
cmp eax, 0x7dc
jne 0x40ddea
mov eax, dword [ebp - 0x2bc]
mov ebx, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x64
mov dword [esp], eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x2bc]
sub esp, 8
mov dword [esp + 4], 0x65
mov dword [esp], eax
call ebx
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x2bc]
sub esp, 8
mov dword [esp + 4], 0x66
mov dword [esp], eax
call ebx
sub esp, 8
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
sub esp, 4
test eax, eax
jne 0x40e112
mov dword [esp], esi
mov esi, dword [sym.imp.user32.dll_EnableWindow]
mov dword [esp + 4], 0
call esi
sub esp, 8
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x146
mov dword [esp], edi
mov dword [ebp - 0x2bc], eax
call eax
sub esp, 0x10
test eax, eax
je 0x40e181
mov dword [esp + 4], 1
mov dword [esp], ebx
call esi
mov eax, dword [ebp - 0x2bc]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov dword [esp], edi
call eax
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40e314
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x2b8]
mov dword [esp], eax
call esi
sub esp, 8
jmp 0x40ddea
cmp eax, 1
jne 0x40ddea
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 4], 0x7dc
lea ebx, [ebp - 0x20e]
xor edi, edi
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x2ac], 0x9c
mov dword [ebp - 0x2c4], eax
lea eax, [ebp - 0x2ac]
sub esp, 8
mov dword [ebp - 0x2a8], 0x10
mov dword [ebp - 0x2b8], eax
jmp 0x40df91
xor edx, edx
test eax, eax
je 0x40e000
mov eax, dword [ebp - 0x2b8]
mov dword [eax + edi*4 + 0x1c], edx
inc edi
mov eax, dword [ebp - 0x2c4]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x148
mov dword [esp], eax
call esi
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40e040
cmp edi, 0x20
je 0x40e040
lea ecx, [ebp - 0x2b0]
lea edx, [ebp - 0x2b4]
mov eax, ebx
call sym._number_from_string
mov eax, dword [ebp - 0x2b0]
movss xmm0, dword [ebp - 0x2b4]
cmp eax, 1
je 0x40e028
cmp eax, 2
jne 0x40df80
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413658]
cvttsd2si edx, xmm0
jmp 0x40df86
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413640]
divsd xmm0, qword [0x413648]
mulsd xmm0, qword [0x413650]
cvttsd2si edx, xmm0
jmp 0x40df86
mulss xmm0, dword [0x413630]
cvttss2si edx, xmm0
jmp 0x40df86
mov eax, dword [ebp - 0x2b8]
mov word [ebp - 0x292], di
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x410cb0]
mov dword [esp + 4], 0x447
mov dword [esp], eax
call esi
sub esp, 0x10
mov eax, dword [ebp - 0x2c0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2bc]
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndDialog]
mov ecx, 1
sub esp, 8
jmp 0x40ddec
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 4], 0x7dc
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
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 esi
xor ecx, ecx
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40ddec
mov dword [ebp - 0x2b8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x144
mov dword [esp], ebx
call esi
mov ecx, dword [ebp - 0x2b8]
sub esp, 0x10
jmp 0x40ddec
mov dword [esp], esi
mov esi, dword [sym.imp.user32.dll_EnableWindow]
mov dword [esp + 4], 1
call esi
sub esp, 8
jmp 0x40de8c
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 4], 0x7dc
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
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 dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SetFocus]
sub esp, 4
jmp 0x40ddea
mov dword [ebp - 0x2b8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call esi
mov ecx, dword [ebp - 0x2b8]
sub esp, 8
jmp 0x40ddec
mov dword [ebp - 0x2b0], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x146
mov dword [esp], edi
call esi
lea ecx, [ebp - 0x2b4]
lea edx, [ebp - 0x2b0]
mov dword [ebp - 0x2b8], eax
sub esp, 0x10
mov eax, ebx
call sym._number_from_string
test eax, eax
je 0x40e321
cmp dword [ebp - 0x2b8], 0x1f
jg 0x40e3aa
mov eax, dword [ebp - 0x2b4]
movss xmm0, dword [ebp - 0x2b0]
mov dword [ebp - 0x2ac], 0xbf800000
cmp eax, 1
je 0x40e4d2
cmp eax, 2
je 0x40e4a7
test eax, eax
je 0x40e4e6
mov dword [ebp - 0x2bc], 0
mov eax, dword [ebp - 0x2b8]
test eax, eax
jle 0x40e50e
xor edx, edx
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x2c0], edi
mov dword [ebp - 0x2c4], esi
mov edi, edx
mov esi, eax
jmp 0x40e281
xor edx, edx
test eax, eax
je 0x40e2ef
cmp dword [ebp - 0x2bc], edx
jle 0x40e3e5
inc edi
cmp dword [ebp - 0x2b8], edi
je 0x40e496
mov eax, dword [ebp - 0x2c0]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x2c4]
mov dword [esp + 4], 0x148
call eax
lea ecx, [ebp - 0x2b4]
mov edx, esi
mov eax, ebx
sub esp, 0x10
call sym._number_from_string
mov eax, dword [ebp - 0x2b4]
movss xmm0, dword [ebp - 0x2ac]
cmp eax, 1
je 0x40e2de
cmp eax, 2
jne 0x40e25e
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413658]
cvttsd2si edx, xmm0
jmp 0x40e268
mulss xmm0, dword [0x413630]
cvttss2si edx, xmm0
jmp 0x40e268
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413640]
divsd xmm0, qword [0x413648]
mulsd xmm0, qword [0x413650]
cvttsd2si edx, xmm0
jmp 0x40e268
mov dword [esp + 4], 0
jmp 0x40df06
mov eax, dword [ebp - 0x2bc]
mov dword [esp], 0
mov dword [ebp - 0x2ac], 0x28
mov dword [ebp - 0x2a8], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2a0], 0x6a9
mov dword [ebp - 0x2a4], eax
sub esp, 4
mov dword [ebp - 0x29c], 0x41c470
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x298], 0x40
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxIndirectW]
sub esp, 4
jmp 0x40dc94
mov eax, dword [ebp - 0x2bc]
mov dword [esp], 0
mov dword [ebp - 0x2ac], 0x28
mov dword [ebp - 0x2a8], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2a0], 0x6b0
mov dword [ebp - 0x2a4], eax
sub esp, 4
jmp 0x40e357
mov ecx, edi
mov edi, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c0], edx
mov esi, dword [ebp - 0x2c4]
mov edx, dword [ebp - 0x2bc]
cmp dword [ebp - 0x2c0], edx
je 0x40dc94
mov dword [ebp - 0x2b8], ecx
mov dword [esp + 0x14], 0x411060
pxor xmm0, xmm0
mov dword [esp + 8], str._.2f__s
cvtsi2ss xmm0, dword [ebp - 0x2bc]
divss xmm0, dword [0x413630]
mulss xmm0, dword [0x413634]
divss xmm0, dword [0x413638]
mov dword [esp], ebx
cvtss2sd xmm0, xmm0
mov dword [esp + 4], 0xff
movsd qword [esp + 0xc], xmm0
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x2b8]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x14a
mov dword [esp + 8], eax
mov dword [esp], edi
call esi
sub esp, 0x10
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.user32.dll_SetWindowTextW]
sub esp, 8
jmp 0x40dc94
mov edi, dword [ebp - 0x2c0]
mov esi, dword [ebp - 0x2c4]
jmp 0x40e411
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413658]
cvttsd2si eax, xmm0
mov dword [ebp - 0x2bc], eax
mov edx, dword [ebp - 0x2b8]
test edx, edx
jg 0x40e244
xor ecx, ecx
jmp 0x40e3f9
mulss xmm0, dword [0x413630]
cvttss2si eax, xmm0
mov dword [ebp - 0x2bc], eax
jmp 0x40e4bd
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413640]
divsd xmm0, qword [0x413648]
mulsd xmm0, qword [0x413650]
cvttsd2si eax, xmm0
mov dword [ebp - 0x2bc], eax
jmp 0x40e4bd
mov dword [ebp - 0x2b8], 0
jmp 0x40e411